mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
It should be possible for example to do this:
"$<AND:${FOO},$<BOOL:${TGT}>,$<BOOL:$<TARGET_PROPERTY:${TGT},PROP>"
such that it works simliarly to the C code:
if (foo && tgt && tgt->prop())
{
}
The example of generator expression code is a little bit contrived as
it could be written other ways with the same functionality. Nevertheless,
as these cases already work and are intentional, test for them.
9 lines
126 B
CMake
9 lines
126 B
CMake
add_custom_target(check ALL COMMAND check
|
|
$<OR>
|
|
$<OR:>
|
|
$<OR:,>
|
|
$<OR:01>
|
|
$<OR:nothing>
|
|
$<OR:0,nothing>
|
|
VERBATIM)
|