summaryrefslogtreecommitdiffstats
path: root/Help/manual/cmake-generator-expressions.7.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Help/manual/cmake-generator-expressions.7.rst')
-rw-r--r--Help/manual/cmake-generator-expressions.7.rst38
1 files changed, 23 insertions, 15 deletions
diff --git a/Help/manual/cmake-generator-expressions.7.rst b/Help/manual/cmake-generator-expressions.7.rst
index 7a6188a..69e3f20 100644
--- a/Help/manual/cmake-generator-expressions.7.rst
+++ b/Help/manual/cmake-generator-expressions.7.rst
@@ -594,6 +594,10 @@ Configuration Expressions
expression when it is evaluated on a property of an :prop_tgt:`IMPORTED`
target.
+ .. versionchanged:: 3.19
+ Multiple configurations can be specified for ``cfgs``.
+ CMake 3.18 and earlier only accepted a single configuration.
+
.. genex:: $<OUTPUT_CONFIG:...>
.. versionadded:: 3.20
@@ -627,9 +631,8 @@ Platform
.. genex:: $<PLATFORM_ID:platform_ids>
- where ``platform_ids`` is a comma-separated list.
``1`` if CMake's platform id matches any one of the entries in
- ``platform_ids``, otherwise ``0``.
+ comma-separated list ``platform_ids``, otherwise ``0``.
See also the :variable:`CMAKE_SYSTEM_NAME` variable.
Compiler Version
@@ -844,10 +847,15 @@ related to most of the expressions in this sub-section.
.. versionadded:: 3.3
- ``1`` when the language used for compilation unit matches any of the entries
- in ``languages``, otherwise ``0``. This expression may be used to specify
- compile options, compile definitions, and include directories for source
- files of a particular language in a target. For example:
+ .. versionchanged:: 3.15
+ Multiple languages can be specified for ``languages``.
+ CMake 3.14 and earlier only accepted a single language.
+
+ ``1`` when the language used for compilation unit matches any of the
+ comma-separated entries in ``languages``, otherwise ``0``. This expression
+ may be used to specify compile options, compile definitions, and include
+ directories for source files of a particular language in a target. For
+ example:
.. code-block:: cmake
@@ -892,8 +900,8 @@ related to most of the expressions in this sub-section.
``1`` when the language used for compilation unit matches ``language`` and
CMake's compiler id of the ``language`` compiler matches any one of the
- entries in ``compiler_ids``, otherwise ``0``. This expression is a short form
- for the combination of ``$<COMPILE_LANGUAGE:language>`` and
+ comma-separated entries in ``compiler_ids``, otherwise ``0``. This expression
+ is a short form for the combination of ``$<COMPILE_LANGUAGE:language>`` and
``$<LANG_COMPILER_ID:compiler_ids>``. This expression may be used to specify
compile options, compile definitions, and include directories for source
files of a particular language and compiler combination in a target.
@@ -967,10 +975,10 @@ Linker Language And ID
.. versionadded:: 3.18
- ``1`` when the language used for link step matches any of the entries
- in ``languages``, otherwise ``0``. This expression may be used to specify
- link libraries, link options, link directories and link dependencies of a
- particular language in a target. For example:
+ ``1`` when the language used for link step matches any of the comma-separated
+ entries in ``languages``, otherwise ``0``. This expression may be used to
+ specify link libraries, link options, link directories and link dependencies
+ of a particular language in a target. For example:
.. code-block:: cmake
@@ -1033,9 +1041,9 @@ Linker Language And ID
.. versionadded:: 3.18
``1`` when the language used for link step matches ``language`` and the
- CMake's compiler id of the language linker matches any one of the entries
- in ``compiler_ids``, otherwise ``0``. This expression is a short form for the
- combination of ``$<LINK_LANGUAGE:language>`` and
+ CMake's compiler id of the language linker matches any one of the comma-separated
+ entries in ``compiler_ids``, otherwise ``0``. This expression is a short form
+ for the combination of ``$<LINK_LANGUAGE:language>`` and
``$<LANG_COMPILER_ID:compiler_ids>``. This expression may be used to specify
link libraries, link options, link directories and link dependencies of a
particular language and linker combination in a target. For example: