Commit 3b9f963f authored by Роман Донченко's avatar Роман Донченко Committed by Brad King

CPack: be more stringent when selecting variables to encode

The old version would admit, for example, a variable named "xxxCPACK".
parent 56be75b3
......@@ -314,7 +314,7 @@ macro(cpack_encode_variables)
get_cmake_property(res VARIABLES)
foreach(var ${res})
if("xxx${var}" MATCHES "xxxCPACK")
if(var MATCHES "^CPACK")
"${_CPACK_OTHER_VARIABLES_}\nSET(${var} \"${${var}}\")")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment