BUG: Fix bug 6106 FindPerlLibs.cmake missing escaped $

This commit is contained in:
Bill Hoffman 2007-12-12 07:26:25 -05:00
parent 42b11caf05
commit b24b859a93
1 changed files with 2 additions and 3 deletions

View File

@ -27,7 +27,7 @@ FIND_PROGRAM(PERL_EXECUTABLE perl )
IF(PERL_EXECUTABLE) IF(PERL_EXECUTABLE)
EXEC_PROGRAM(${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 OUTPUT_VARIABLE PERL_LIBRARY_OUTPUT_VARIABLE
RETURN_VALUE PERL_LIBRARY_RETURN_VALUE RETURN_VALUE PERL_LIBRARY_RETURN_VALUE
) )
@ -37,13 +37,12 @@ IF(PERL_EXECUTABLE)
ENDFOREACH(path ${PERL_POSSIBLE_LIB_PATHS}) ENDFOREACH(path ${PERL_POSSIBLE_LIB_PATHS})
ENDIF(NOT PERL_LIBRARY_RETURN_VALUE) ENDIF(NOT PERL_LIBRARY_RETURN_VALUE)
EXEC_PROGRAM(${PERL_EXECUTABLE} 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 OUTPUT_VARIABLE PERL_CPPFLAGS_OUTPUT_VARIABLE
RETURN_VALUE PERL_CPPFLAGS_RETURN_VALUE RETURN_VALUE PERL_CPPFLAGS_RETURN_VALUE
) )
IF(NOT PERL_CPPFLAGS_RETURN_VALUE) IF(NOT PERL_CPPFLAGS_RETURN_VALUE)
SET(PERL_EXTRA_C_FLAGS ${PERL_CPPFLAGS_OUTPUT_VARIABLE}) SET(PERL_EXTRA_C_FLAGS ${PERL_CPPFLAGS_OUTPUT_VARIABLE})
SEPARATE_ARGUMENTS(PERL_EXTRA_C_FLAGS)
ENDIF(NOT PERL_CPPFLAGS_RETURN_VALUE) ENDIF(NOT PERL_CPPFLAGS_RETURN_VALUE)
ENDIF(PERL_EXECUTABLE) ENDIF(PERL_EXECUTABLE)