From 12be7c21d0f4f4e8980850395284ca11608927fd Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 1 Oct 2008 16:10:45 -0400 Subject: [PATCH] ENH: find perl with FindPerl not find_program, bug: 6243 --- Modules/FindPerlLibs.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/FindPerlLibs.cmake b/Modules/FindPerlLibs.cmake index 884af6ec9..50a5629ad 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}