summaryrefslogtreecommitdiffstats
path: root/Modules/FindPerl.cmake
diff options
context:
space:
mode:
authorIan Scott <ian.m.scott@stud.man.ac.uk>2002-09-03 12:33:56 (GMT)
committerIan Scott <ian.m.scott@stud.man.ac.uk>2002-09-03 12:33:56 (GMT)
commitc5feb8c6c54f13894fd573f0c29d7900487a54d9 (patch)
tree789b32d13f8feb5576ecaabc2fd4aab14581b0d4 /Modules/FindPerl.cmake
parentd7ebdb9da056856225739c07aee9c860658ffc0a (diff)
downloadCMake-c5feb8c6c54f13894fd573f0c29d7900487a54d9.zip
CMake-c5feb8c6c54f13894fd573f0c29d7900487a54d9.tar.gz
CMake-c5feb8c6c54f13894fd573f0c29d7900487a54d9.tar.bz2
Added PERL_FOUND
Diffstat (limited to 'Modules/FindPerl.cmake')
-rw-r--r--Modules/FindPerl.cmake16
1 files changed, 14 insertions, 2 deletions
diff --git a/Modules/FindPerl.cmake b/Modules/FindPerl.cmake
index af2328b..88e41fc 100644
--- a/Modules/FindPerl.cmake
+++ b/Modules/FindPerl.cmake
@@ -1,10 +1,12 @@
#
# this module looks for Perl
#
+# PERL_EXECUTABLE - the full path to the Perl interpreter
+# PERL_FOUND - If false, don't attempt to use perl.
INCLUDE(${CMAKE_ROOT}/Modules/FindCygwin.cmake)
-FIND_PROGRAM(PERL
+FIND_PROGRAM(PERL_EXECUTABLE
perl
"C:/Perl/bin"
[HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActivePerl\\628]/bin
@@ -12,5 +14,15 @@ FIND_PROGRAM(PERL
)
MARK_AS_ADVANCED(
- PERL
+ PERL_EXECUTABLE
)
+
+IF (NOT PERL_EXECUTABLE)
+ SET(PERL_FOUND "NO")
+ELSE (NOT PERL_EXECUTABLE)
+ SET(PERL_FOUND "YES")
+
+# Deprecated settings for compatibility with CMake1.4
+ SET (PERL ${PERL_EXECUTABLE})
+ENDIF (NOT PERL_EXECUTABLE)
+