ARGS¶
This generator expression belongs to the Support Expressions family. See that section for related generator expressions.
Syntax¶
$<ARGS:cmake-list>
Added in version 4.5.
Transform a semicolon-separated list into a comma-separated list as expected by many generator expressions.
# check if the current config is a debug one
## Converting a cmake list by hand does not give the expected result
$<CONFIG:$<LIST:JOIN,$<GLOBAL_PROPERTY:DEBUG_CONFIGURATIONS>,$<COMMA>>>
## correct way to proceed
$<CONFIG:$<ARGS:$<GLOBAL_PROPERTY:DEBUG_CONFIGURATIONS>>>