summaryrefslogtreecommitdiffstats
path: root/Help/module/CPack.rst
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2024-10-06 05:04:26 (GMT)
committerBrad King <brad.king@kitware.com>2024-10-07 14:24:37 (GMT)
commitfa07ddfebf69b5ea88799562ead7f6356e28ae01 (patch)
treefb4943d26edf15a6f91cabacebc9761438d7ead5 /Help/module/CPack.rst
parent5e4526d6dd473a5e47fea500377bc7b8de754e7f (diff)
downloadCMake-fa07ddfebf69b5ea88799562ead7f6356e28ae01.zip
CMake-fa07ddfebf69b5ea88799562ead7f6356e28ae01.tar.gz
CMake-fa07ddfebf69b5ea88799562ead7f6356e28ae01.tar.bz2
project: Only check non-cache vars when setting project vars
The change in commit 86ad7cc886 (project: Only define non-cache vars if already defined, 2024-09-15, v3.30.4~2^2) was meant to only check for non-cache variables when deciding whether to set non-cache project variables for the current call. However, it erroneously checked for any variable, including cache variables. This gives the intended result on the first run, but on subsequent runs a cache variable will exist that did not on the first run, leading to different behavior between the two runs. Fix the logic to only check for a pre-existing non-cache variable, as was originally intended. Fixes: #26355
Diffstat (limited to 'Help/module/CPack.rst')
0 files changed, 0 insertions, 0 deletions