summaryrefslogtreecommitdiffstats
path: root/Modules/CPack.cmake
diff options
context:
space:
mode:
authorРоман Донченко <dpb@corrigendum.ru>2015-02-28 23:38:52 (GMT)
committerBrad King <brad.king@kitware.com>2015-03-02 14:01:31 (GMT)
commit3b9f963f3fb1db05e90cfad606c62a7b3e9b18dc (patch)
tree6532fb90ee2d5b37410ffc82262c5021c6408927 /Modules/CPack.cmake
parent56be75b3107b210631919c13496060d648f97b14 (diff)
downloadCMake-3b9f963f3fb1db05e90cfad606c62a7b3e9b18dc.zip
CMake-3b9f963f3fb1db05e90cfad606c62a7b3e9b18dc.tar.gz
CMake-3b9f963f3fb1db05e90cfad606c62a7b3e9b18dc.tar.bz2
CPack: be more stringent when selecting variables to encode
The old version would admit, for example, a variable named "xxxCPACK".
Diffstat (limited to 'Modules/CPack.cmake')
-rw-r--r--Modules/CPack.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CPack.cmake b/Modules/CPack.cmake
index ce1536e..532596d 100644
--- a/Modules/CPack.cmake
+++ b/Modules/CPack.cmake
@@ -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()