mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 12:19:54 -05:00
Help: Explain conversion rules of $<BOOL:string>.
This resolves #18549.
This commit is contained in:
committed by
Joachim Wuttke (o)
parent
2b2b41f038
commit
e0f0f80f02
@@ -44,8 +44,16 @@ Available boolean expressions are:
|
|||||||
Logical Operators
|
Logical Operators
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
``$<BOOL:condition>``
|
``$<BOOL:string>``
|
||||||
``1`` if the ``condition`` is true, else ``0``
|
Converts ``string`` to ``0`` or ``1`` according to the rules of the
|
||||||
|
:command:`if()` command. Evaluates to ``0`` if any of the following is true:
|
||||||
|
|
||||||
|
* ``string`` is empty,
|
||||||
|
* ``string`` is a case-insensitive equal of
|
||||||
|
``0``, ``FALSE``, ``OFF``, ``N``, ``NO``, ``IGNORE``, or ``NOTFOUND``, or
|
||||||
|
* ``string`` ends in the suffix ``-NOTFOUND`` (case-sensitive).
|
||||||
|
|
||||||
|
Otherwise evaluates to ``1``.
|
||||||
|
|
||||||
``$<AND:conditions>``
|
``$<AND:conditions>``
|
||||||
where ``conditions`` is a comma-separated list of boolean expressions.
|
where ``conditions`` is a comma-separated list of boolean expressions.
|
||||||
|
|||||||
Reference in New Issue
Block a user