Merge topic 'cpack-strict-variable-selection'
3b9f963f
CPack: be more stringent when selecting variables to encode
This commit is contained in:
commit
ad162206f0
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue