summaryrefslogtreecommitdiffstats
path: root/Modules/FindPerl.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2006-10-24 21:56:59 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2006-10-24 21:56:59 (GMT)
commit5a2b41350b94f6ef63f49082f8c257eafa9ef5b0 (patch)
tree4b7261cf544ea644a916f9e312a0e19a1cb26553 /Modules/FindPerl.cmake
parente8d48151d36d82d7432293b7dca1471451d537f5 (diff)
downloadCMake-5a2b41350b94f6ef63f49082f8c257eafa9ef5b0.zip
CMake-5a2b41350b94f6ef63f49082f8c257eafa9ef5b0.tar.gz
CMake-5a2b41350b94f6ef63f49082f8c257eafa9ef5b0.tar.bz2
BUG: honor the REQUIRED flag for Perl, please backport to 2.4 branch so that
it will be in 2.4.4 Alex
Diffstat (limited to 'Modules/FindPerl.cmake')
-rw-r--r--Modules/FindPerl.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/FindPerl.cmake b/Modules/FindPerl.cmake
index 65340b8..1af301d 100644
--- a/Modules/FindPerl.cmake
+++ b/Modules/FindPerl.cmake
@@ -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)