diff --git a/Help/manual/cmake-generator-expressions.7.rst b/Help/manual/cmake-generator-expressions.7.rst index bddf827a10..24b79d4ce2 100644 --- a/Help/manual/cmake-generator-expressions.7.rst +++ b/Help/manual/cmake-generator-expressions.7.rst @@ -42,19 +42,26 @@ otherwise expands to nothing. Available logical expressions are: -``$`` - ``1`` if the ``...`` is true, else ``0`` -``$`` - ``1`` if all ``?`` are ``1``, else ``0`` +``$`` + ``1`` if the ``condition`` is true, else ``0`` - The ``?`` must always be either ``0`` or ``1`` in boolean expressions. +``$`` + where ``conditions`` is a comma-separated list of boolean expressions. + Evaluates to ``1`` if all conditions are ``1``. + Otherwise evaluates to ``0``. + +``$`` + where ``conditions`` is a comma-separated list of boolean expressions. + Evaluates to ``1`` if at least one of the conditions is ``1``. + Otherwise evaluates to ``0``. + +``$`` + ``0`` if ``condition`` is ``1``, else ``1`` + +``$`` + ``true_value`` if ``condition`` is ``1``, + ``false_value`` if ``condition`` is ``0`` -``$`` - ``0`` if all ``?`` are ``0``, else ``1`` -``$`` - ``0`` if ``?`` is ``1``, else ``1`` -``$`` - ``true-value...`` if ``?`` is ``1``, ``false-value...`` if ``?`` is ``0`` ``$`` ``1`` if ``a`` is STREQUAL ``b``, else ``0`` ``$``