CMake/Tests/RunCMake/cmake_parse_arguments
Craig Scott c8567acc32 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
2024-10-28 09:47:21 -04:00
..
ArgvN.cmake
BadArgvN1-result.txt
BadArgvN1-stderr.txt
BadArgvN1.cmake
BadArgvN2-result.txt
BadArgvN2-stderr.txt
BadArgvN2.cmake
BadArgvN3-result.txt
BadArgvN3-stderr.txt
BadArgvN3.cmake
BadArgvN4-result.txt
BadArgvN4-stderr.txt
BadArgvN4.cmake
CMakeLists.txt
CornerCases.cmake
CornerCasesArgvN-stderr.txt cmake_parse_arguments: Restore capture of value after repeated keyword 2024-10-28 09:47:21 -04:00
CornerCasesArgvN.cmake cmake_parse_arguments: Restore capture of value after repeated keyword 2024-10-28 09:47:21 -04:00
Errors-result.txt
Errors-stderr.txt
Errors.cmake
Initialization.cmake
KeyWordsMissingValues.cmake
Mix.cmake
RunCMakeTest.cmake
test_utils.cmake
Utils.cmake