BUG: Fix bug 6106 FindPerlLibs.cmake missing escaped $
This commit is contained in:
parent
42b11caf05
commit
b24b859a93
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue