diff options
author | Joachim Wuttke (h) <j.wuttke@fz-juelich.de> | 2018-11-04 18:51:06 (GMT) |
---|---|---|
committer | Joachim Wuttke (o) <j.wuttke@fz-juelich.de> | 2018-11-06 11:55:24 (GMT) |
commit | 3fa0a03b7e4094bef1b66e48ed437e1c0b41c49a (patch) | |
tree | b8ccc24a474ea8dabd3386ceae49a43e8b5c6eda /Help | |
parent | fb423b3c49d21df851b1d4a91fddfe94d835155b (diff) | |
download | CMake-3fa0a03b7e4094bef1b66e48ed437e1c0b41c49a.zip CMake-3fa0a03b7e4094bef1b66e48ed437e1c0b41c49a.tar.gz CMake-3fa0a03b7e4094bef1b66e48ed437e1c0b41c49a.tar.bz2 |
Help: Expand placeholders in string comparisons.
And point out that STREQUAL is case sensitive.
Diffstat (limited to 'Help')
-rw-r--r-- | Help/manual/cmake-generator-expressions.7.rst | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Help/manual/cmake-generator-expressions.7.rst b/Help/manual/cmake-generator-expressions.7.rst index cbeb348..27bf7d1 100644 --- a/Help/manual/cmake-generator-expressions.7.rst +++ b/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>`` |