mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-30 02:59:22 -05:00
895f7f16a7
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
8 lines
316 B
ReStructuredText
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``.
|