[cmake-commits] alex committed FindPerl.cmake 1.8 1.9

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Oct 24 17:57:01 EDT 2006


Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv19327

Modified Files:
	FindPerl.cmake 
Log Message:
BUG: honor the REQUIRED flag for Perl, please backport to 2.4 branch so that
it will be in 2.4.4

Alex


Index: FindPerl.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FindPerl.cmake,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- FindPerl.cmake	15 Dec 2005 19:17:42 -0000	1.8
+++ FindPerl.cmake	24 Oct 2006 21:56:59 -0000	1.9
@@ -27,3 +27,7 @@
   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)



More information about the Cmake-commits mailing list