Parcourir la source

Help: Expand placeholders in string comparisons.

And point out that STREQUAL is case sensitive.
Joachim Wuttke (h) il y a 7 ans
Parent
commit
3fa0a03b7e
1 fichiers modifiés avec 8 ajouts et 6 suppressions
  1. 8 6
      Help/manual/cmake-generator-expressions.7.rst

+ 8 - 6
Help/manual/cmake-generator-expressions.7.rst

@@ -63,12 +63,14 @@ Logical Operators
 String Comparisons
 ------------------
 
-``$<STREQUAL:a,b>``
-  ``1`` if ``a`` is STREQUAL ``b``, else ``0``
-``$<EQUAL:a,b>``
-  ``1`` if ``a`` is EQUAL ``b`` in a numeric comparison, else ``0``
-``$<IN_LIST:a,b>``
-  ``1`` if ``a`` is IN_LIST ``b``, else ``0``
+``$<STREQUAL:string1,string2>``
+  ``1`` if ``string1`` and ``string2`` are equal, else ``0``.
+  The comparison is case-sensitive.
+``$<EQUAL:value1,value2>``
+  ``1`` if ``value1`` and ``value2`` are numerically equal, else ``0``
+``$<IN_LIST:string,list>``
+  ``1`` if ``string`` is member of the comma-separated ``list``, else ``0``.
+  Uses case-sensitive comparisons.
 ``$<VERSION_LESS:v1,v2>``
   ``1`` if ``v1`` is a version less than ``v2``, else ``0``.
 ``$<VERSION_GREATER:v1,v2>``