BUG: honor the REQUIRED flag for Perl, please backport to 2.4 branch so that

it will be in 2.4.4

Alex
This commit is contained in:
Alexander Neundorf 2006-10-24 17:56:59 -04:00
parent e8d48151d3
commit 5a2b41350b
1 changed files with 4 additions and 0 deletions

View File

@ -27,3 +27,7 @@ ELSE (NOT PERL_EXECUTABLE)
SET (PERL ${PERL_EXECUTABLE})
ENDIF (NOT PERL_EXECUTABLE)
IF (NOT PERL_FOUND AND Perl_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find Perl")
ENDIF (NOT PERL_FOUND AND Perl_FIND_REQUIRED)