diff options
author | Craig Scott <craig.scott@crascit.com> | 2022-07-19 05:59:15 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2022-07-19 06:04:56 (GMT) |
commit | 2b102438f811fabb4b64feeb1389d925371e33fe (patch) | |
tree | f31934d56c461a773167032f34c2ec02ef8e9426 /Help | |
parent | d2cb36861f3ad9423bfe1ca7979b33ddf9925a88 (diff) | |
download | CMake-2b102438f811fabb4b64feeb1389d925371e33fe.zip CMake-2b102438f811fabb4b64feeb1389d925371e33fe.tar.gz CMake-2b102438f811fabb4b64feeb1389d925371e33fe.tar.bz2 |
Help: Boolean genex conditions must evaluate to 1 or 0
Diffstat (limited to 'Help')
-rw-r--r-- | Help/manual/cmake-generator-expressions.7.rst | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Help/manual/cmake-generator-expressions.7.rst b/Help/manual/cmake-generator-expressions.7.rst index 9649e62..b546a46 100644 --- a/Help/manual/cmake-generator-expressions.7.rst +++ b/Help/manual/cmake-generator-expressions.7.rst @@ -60,18 +60,21 @@ Logical Operators .. genex:: $<AND:conditions> - 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, + all of which must evaluate to either ``1`` or ``0``. The whole expression + evaluates to ``1`` if all conditions are ``1``. If any condition is ``0``, + the whole expression evaluates to ``0``. .. genex:: $<OR:conditions> 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``. + all of which must evaluate to either ``1`` or ``0``. The whole expression + evaluates to ``1`` if at least one of the ``conditions`` is ``1``. If all + ``conditions`` evaluate to ``0``, the whole expression evaluates to ``0``. .. genex:: $<NOT:condition> + ``condition`` must be ``0`` or ``1``. The result of the expression is ``0`` if ``condition`` is ``1``, else ``1``. String Comparisons |