From db749f404c29bc91a06f2ea2fb23d8a30c526a9a Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (h)" Date: Sun, 4 Nov 2018 14:55:51 +0100 Subject: Help: expand "..." and "?" in logical generator expressions Expand "..." and "?", which could be mistaken as metacharacters (and in the explanations of AND and OR actually were meant as metacharacters). --- Help/manual/cmake-generator-expressions.7.rst | 33 ++++++++++++++++----------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/Help/manual/cmake-generator-expressions.7.rst b/Help/manual/cmake-generator-expressions.7.rst index bddf827..24b79d4 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`` - - The ``?`` must always be either ``0`` or ``1`` in boolean expressions. - -``$`` - ``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 the ``condition`` is true, else ``0`` + +``$`` + 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`` + ``$`` ``1`` if ``a`` is STREQUAL ``b``, else ``0`` ``$`` -- cgit v0.12