CMake/Tests/RunCMake/GeneratorExpression/BadIF.cmake
Colby Pike 895f7f16a7 Genex: Add IF generator expression
This allows a single condition to be used to choose between two
alternatives.  Without this the condition must be duplicated with
one surrounded by `NOT`.

Closes: #15585
2017-01-26 11:18:50 -05:00

6 lines
85 B
CMake

add_custom_target(check ALL COMMAND check
$<IF:asdf,a,b>
$<IF:asdf,a>
)