From fe8acf7c0540ca39300bab5b014e428e84077c7a Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (h)" Date: Sun, 4 Nov 2018 15:48:02 +0100 Subject: Help: 3 subtypes of boolean generator expressions. Main classification by return type, subclassification by dependences --- Help/manual/cmake-generator-expressions.7.rst | 30 ++++++++++++++++++--------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/Help/manual/cmake-generator-expressions.7.rst b/Help/manual/cmake-generator-expressions.7.rst index 1c3d3fc..099d398 100644 --- a/Help/manual/cmake-generator-expressions.7.rst +++ b/Help/manual/cmake-generator-expressions.7.rst @@ -63,6 +63,9 @@ They are typically used to construct the condition in a Available boolean expressions are: +Logical Operators +----------------- + ``$`` ``1`` if the ``condition`` is true, else ``0`` @@ -79,12 +82,29 @@ Available boolean expressions are: ``$`` ``0`` if ``condition`` is ``1``, else ``1`` +String Comparisons +------------------ + ``$`` ``1`` if ``a`` is STREQUAL ``b``, else ``0`` ``$`` ``1`` if ``a`` is EQUAL ``b`` in a numeric comparison, else ``0`` ``$`` ``1`` if ``a`` is IN_LIST ``b``, else ``0`` +``$`` + ``1`` if ``v1`` is a version less than ``v2``, else ``0``. +``$`` + ``1`` if ``v1`` is a version greater than ``v2``, else ``0``. +``$`` + ``1`` if ``v1`` is the same version as ``v2``, else ``0``. +``$`` + ``1`` if ``v1`` is a version less than or equal to ``v2``, else ``0``. +``$`` + ``1`` if ``v1`` is a version greater than or equal to ``v2``, else ``0``. + +Variable Queries +---------------- + ``$`` ``1`` if ``target`` exists, else ``0``. ``$`` @@ -104,16 +124,6 @@ Available boolean expressions are: ``1`` if the CMake-id of the CXX compiler matches ``compiler_id``, otherwise ``0``. See also the :variable:`CMAKE__COMPILER_ID` variable. -``$`` - ``1`` if ``v1`` is a version less than ``v2``, else ``0``. -``$`` - ``1`` if ``v1`` is a version greater than ``v2``, else ``0``. -``$`` - ``1`` if ``v1`` is the same version as ``v2``, else ``0``. -``$`` - ``1`` if ``v1`` is a version less than or equal to ``v2``, else ``0``. -``$`` - ``1`` if ``v1`` is a version greater than or equal to ``v2``, else ``0``. ``$`` ``1`` if the version of the C compiler matches ``version``, otherwise ``0``. See also the :variable:`CMAKE__COMPILER_VERSION` variable. -- cgit v0.12