bc2e54db55
If variable is set to TRUE, values of all variables prefixed with CPACK_ will be escaped so special characters such as dolar sign, quotes or foreward slash will not be lost. By default variable is treated as set to FALSE for back compatibility. The cpack_encode_variables macro is changed into a function to remove scope pollution. There should be no other effects.
11 lines
360 B
CMake
11 lines
360 B
CMake
include(${RunCMake_SOURCE_DIR}/check.cmake)
|
|
|
|
test_variable(CPACK_BACKSLASH "\\\\")
|
|
test_variable(CPACK_QUOTE "a\" b \"c")
|
|
test_variable(CPACK_DOLLAR "a\${NOTHING}b")
|
|
|
|
# make sure the default for this is still set correctly with
|
|
# CPACK_VERBATIM_VARIABLES on
|
|
test_variable(CPACK_SOURCE_IGNORE_FILES
|
|
"/CVS/;/\\.svn/;/\\.bzr/;/\\.hg/;/\\.git/;\\.swp$;\\.#;/#")
|