diff --git a/Modules/FindPerlLibs.cmake b/Modules/FindPerlLibs.cmake index d8c981d63..884af6ec9 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)