Browse Source

ENH: find perl with FindPerl not find_program, bug: 6243

Bill Hoffman 17 years ago
parent
commit
12be7c21d0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Modules/FindPerlLibs.cmake

+ 2 - 1
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}