Genex: $<CONFIG:> syntax not checked for multiple configurations
When first added, $<CONFIG:xxx>
only supported one config. When support was added for multiple configs, the check for expression syntax was not updated correctly. For example, as is CMake does not complain:
target_compile_definitions(Tutorial PUBLIC
"$<$<CONFIG:debug,release-foo>:DEBUG_OR_FOO>"
# "$<$<CONFIG:release-bar>:BAR>"
)
But if the last generator expression is uncommented, you get the error:
Error evaluating generator expression:
$<CONFIG:release-bar>
Expression syntax not recognized.
See: !4924 (merged), https://gitlab.kitware.com/cmake/cmake/-/blob/v3.25.1/Source/cmGeneratorExpressionNode.cxx#L1351
Related to this issue, the accepted syntax for CMAKE_CONFIGURATION_TYPES
does not seem to be documented?
Edited by Brad King