Files
CMake/Help/release/dev/if-genex.rst
T
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

8 lines
316 B
ReStructuredText

genex-if
--------
* A new logical generator expression for immediate-if was added:
``$<IF:cond,true-value,false-value>``. It takes three arguments: One
condition, a true-value, and a false-value. Resolves to the true-value if the
condition is ``1``, and resolves to the false-value if the condition is ``0``.