summaryrefslogtreecommitdiffstats
path: root/Source/cmStringAlgorithms.cxx
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2024-08-18 12:38:02 (GMT)
committerCraig Scott <craig.scott@crascit.com>2024-08-22 23:42:13 (GMT)
commitceeea4e511d658b249615e5c98231f070aaedeb9 (patch)
tree48623570bef921bf485136b33f64e404257eadc4 /Source/cmStringAlgorithms.cxx
parent2f5cc6afa1f9561783193c4541bf1149b3f63fa8 (diff)
downloadCMake-ceeea4e511d658b249615e5c98231f070aaedeb9.zip
CMake-ceeea4e511d658b249615e5c98231f070aaedeb9.tar.gz
CMake-ceeea4e511d658b249615e5c98231f070aaedeb9.tar.bz2
cmake_parse_arguments: Set variable if empty string given after keyword
If a single-value keyword is followed by an empty string, the command unsets the variable for that keyword instead of setting it to the empty string. This is inconsistent and unexpected. Add policy CMP0174 which ensures the variable for a single-value keyword is always set when any value is given, not just for a non-empty value. The new CMP0174 policy only affects the PARSE_ARGV form of cmake_parse_arguments. The older form silently drops all empty string arguments before processing the argument list. Fixes: #25972
Diffstat (limited to 'Source/cmStringAlgorithms.cxx')
0 files changed, 0 insertions, 0 deletions