Merge topic 'cpack-strict-variable-selection'

3b9f963f CPack: be more stringent when selecting variables to encode
This commit is contained in:
Brad King 2015-03-03 08:32:56 -05:00 committed by CMake Topic Stage
commit ad162206f0
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ macro(cpack_encode_variables)
set(_CPACK_OTHER_VARIABLES_)
get_cmake_property(res VARIABLES)
foreach(var ${res})
if("xxx${var}" MATCHES "xxxCPACK")
if(var MATCHES "^CPACK")
set(_CPACK_OTHER_VARIABLES_
"${_CPACK_OTHER_VARIABLES_}\nSET(${var} \"${${var}}\")")
endif()