summaryrefslogtreecommitdiff
path: root/Modules/FindPerlLibs.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-10-01 16:10:45 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2008-10-01 16:10:45 -0400
commit12be7c21d0f4f4e8980850395284ca11608927fd (patch)
tree8cd65f7b4c5cf6b093409a1b616830926cb5269a /Modules/FindPerlLibs.cmake
parentad63a47d028f20edab8f990e84678989dee197df (diff)
downloadcmake-12be7c21d0f4f4e8980850395284ca11608927fd.tar.gz
ENH: find perl with FindPerl not find_program, bug: 6243
Diffstat (limited to 'Modules/FindPerlLibs.cmake')
-rw-r--r--Modules/FindPerlLibs.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/FindPerlLibs.cmake b/Modules/FindPerlLibs.cmake
index 884af6ec99..50a5629adb 100644
--- a/Modules/FindPerlLibs.cmake
+++ b/Modules/FindPerlLibs.cmake
@@ -22,8 +22,9 @@ SET(PERL_POSSIBLE_LIB_PATHS
FIND_PATH(PERL_INCLUDE_PATH perl.h
${PERL_POSSIBLE_INCLUDE_PATHS})
+# find the perl executable
+INCLUDE(FindPerl)
-FIND_PROGRAM(PERL_EXECUTABLE perl )
IF(PERL_EXECUTABLE)
EXEC_PROGRAM(${PERL_EXECUTABLE}