diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-12-12 12:26:25 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-12-12 12:26:25 (GMT) |
commit | b24b859a93bf9c42dcd094b81d035744638a2855 (patch) | |
tree | d587782bbc48bdeb6c0c3c028d01c34a7ef79cc5 /Modules/FindPerlLibs.cmake | |
parent | 42b11caf05334890c8216f946ff34d045f6c3051 (diff) | |
download | CMake-b24b859a93bf9c42dcd094b81d035744638a2855.zip CMake-b24b859a93bf9c42dcd094b81d035744638a2855.tar.gz CMake-b24b859a93bf9c42dcd094b81d035744638a2855.tar.bz2 |
BUG: Fix bug 6106 FindPerlLibs.cmake missing escaped $
Diffstat (limited to 'Modules/FindPerlLibs.cmake')
-rw-r--r-- | Modules/FindPerlLibs.cmake | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Modules/FindPerlLibs.cmake b/Modules/FindPerlLibs.cmake index d8c981d..884af6e 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) |