summaryrefslogtreecommitdiffstats
path: root/Tests/FindPython/Python3Module
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2024-10-27 11:08:03 (GMT)
committerBrad King <brad.king@kitware.com>2024-10-28 13:47:21 (GMT)
commitc8567acc326dc72a7f9f8371bd6f4836eeab7c28 (patch)
tree90c443ded9cdac00b52dea8145364f55414fe904 /Tests/FindPython/Python3Module
parentfcff1dcb064950f83ef45a41ea236b64fe2ac5e7 (diff)
downloadCMake-c8567acc326dc72a7f9f8371bd6f4836eeab7c28.zip
CMake-c8567acc326dc72a7f9f8371bd6f4836eeab7c28.tar.gz
CMake-c8567acc326dc72a7f9f8371bd6f4836eeab7c28.tar.bz2
cmake_parse_arguments: Restore capture of value after repeated keyword
When a single-value keyword is repeated, and the first instance is missing a value, it prevents the value from the second instance from being stored in a variable. This was a regression introduced by commit ceeea4e511 (cmake_parse_arguments: Set variable if empty string given after keyword, 2024-08-18). That change also didn't create a variable if the keyword was given but without a value. The purpose of the change was to always define a variable if a keyword was given. Lastly, that change didn't protect the CMP0174 logic to make it only apply to the PARSE_ARGV form. The first two of the above problems are fixed here by tracking the keywords given instead of checking which keywords were missing values. The third problem is also fixed here, being tightly coupled to the same logic as the first two problems. Fixes: #26397
Diffstat (limited to 'Tests/FindPython/Python3Module')
0 files changed, 0 insertions, 0 deletions