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

This commit is contained in:
Bill Hoffman 2008-10-01 16:10:45 -04:00
parent ad63a47d02
commit 12be7c21d0
1 changed files with 2 additions and 1 deletions

View File

@ -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}