summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-12-12 07:26:25 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2007-12-12 07:26:25 -0500
commitb24b859a93bf9c42dcd094b81d035744638a2855 (patch)
treed587782bbc48bdeb6c0c3c028d01c34a7ef79cc5
parent42b11caf05334890c8216f946ff34d045f6c3051 (diff)
downloadcmake-b24b859a93bf9c42dcd094b81d035744638a2855.tar.gz
BUG: Fix bug 6106 FindPerlLibs.cmake missing escaped $
-rw-r--r--Modules/FindPerlLibs.cmake5
1 files changed, 2 insertions, 3 deletions
diff --git a/Modules/FindPerlLibs.cmake b/Modules/FindPerlLibs.cmake
index d8c981d631..884af6ec99 100644
--- a/Modules/FindPerlLibs.cmake
+++ b/Modules/FindPerlLibs.cmake
@@ -27,7 +27,7 @@ FIND_PROGRAM(PERL_EXECUTABLE perl )
IF(PERL_EXECUTABLE)
EXEC_PROGRAM(${PERL_EXECUTABLE}
- ARGS -e "'use Config; print $Config{libperl}, \"\\n\"'"
+ ARGS -e "'use Config; print \$Config{libperl}, \"\\n\"'"
OUTPUT_VARIABLE PERL_LIBRARY_OUTPUT_VARIABLE
RETURN_VALUE PERL_LIBRARY_RETURN_VALUE
)
@@ -37,13 +37,12 @@ IF(PERL_EXECUTABLE)
ENDFOREACH(path ${PERL_POSSIBLE_LIB_PATHS})
ENDIF(NOT PERL_LIBRARY_RETURN_VALUE)
EXEC_PROGRAM(${PERL_EXECUTABLE}
- ARGS -e "'use Config; print $Config{cppflags}, \"\\n\"'"
+ ARGS -e "'use Config; print \$Config{cppflags}, \"\\n\"'"
OUTPUT_VARIABLE PERL_CPPFLAGS_OUTPUT_VARIABLE
RETURN_VALUE PERL_CPPFLAGS_RETURN_VALUE
)
IF(NOT PERL_CPPFLAGS_RETURN_VALUE)
SET(PERL_EXTRA_C_FLAGS ${PERL_CPPFLAGS_OUTPUT_VARIABLE})
- SEPARATE_ARGUMENTS(PERL_EXTRA_C_FLAGS)
ENDIF(NOT PERL_CPPFLAGS_RETURN_VALUE)
ENDIF(PERL_EXECUTABLE)