mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 07:10:12 -05:00
Merge topic 'doc-gen' into release-3.25
9e8b8bf4efHelp: Document version when COMPILE_LANGUAGE genex accepts multiple languages16f37ea7a0Help: Document comma-separation in some generator expressions Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7784
This commit is contained in:
@@ -631,9 +631,8 @@ Platform
|
|||||||
|
|
||||||
.. genex:: $<PLATFORM_ID:platform_ids>
|
.. 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
|
``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.
|
See also the :variable:`CMAKE_SYSTEM_NAME` variable.
|
||||||
|
|
||||||
Compiler Version
|
Compiler Version
|
||||||
@@ -848,10 +847,15 @@ related to most of the expressions in this sub-section.
|
|||||||
|
|
||||||
.. versionadded:: 3.3
|
.. versionadded:: 3.3
|
||||||
|
|
||||||
``1`` when the language used for compilation unit matches any of the entries
|
.. versionchanged:: 3.15
|
||||||
in ``languages``, otherwise ``0``. This expression may be used to specify
|
Multiple languages can be specified for ``languages``.
|
||||||
compile options, compile definitions, and include directories for source
|
CMake 3.14 and earlier only accepted a single language.
|
||||||
files of a particular language in a target. For example:
|
|
||||||
|
``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
|
.. code-block:: cmake
|
||||||
|
|
||||||
@@ -896,8 +900,8 @@ related to most of the expressions in this sub-section.
|
|||||||
|
|
||||||
``1`` when the language used for compilation unit matches ``language`` and
|
``1`` when the language used for compilation unit matches ``language`` and
|
||||||
CMake's compiler id of the ``language`` compiler matches any one of the
|
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
|
comma-separated entries in ``compiler_ids``, otherwise ``0``. This expression
|
||||||
for the combination of ``$<COMPILE_LANGUAGE:language>`` and
|
is a short form for the combination of ``$<COMPILE_LANGUAGE:language>`` and
|
||||||
``$<LANG_COMPILER_ID:compiler_ids>``. This expression may be used to specify
|
``$<LANG_COMPILER_ID:compiler_ids>``. This expression may be used to specify
|
||||||
compile options, compile definitions, and include directories for source
|
compile options, compile definitions, and include directories for source
|
||||||
files of a particular language and compiler combination in a target.
|
files of a particular language and compiler combination in a target.
|
||||||
@@ -971,10 +975,10 @@ Linker Language And ID
|
|||||||
|
|
||||||
.. versionadded:: 3.18
|
.. versionadded:: 3.18
|
||||||
|
|
||||||
``1`` when the language used for link step matches any of the entries
|
``1`` when the language used for link step matches any of the comma-separated
|
||||||
in ``languages``, otherwise ``0``. This expression may be used to specify
|
entries in ``languages``, otherwise ``0``. This expression may be used to
|
||||||
link libraries, link options, link directories and link dependencies of a
|
specify link libraries, link options, link directories and link dependencies
|
||||||
particular language in a target. For example:
|
of a particular language in a target. For example:
|
||||||
|
|
||||||
.. code-block:: cmake
|
.. code-block:: cmake
|
||||||
|
|
||||||
@@ -1037,9 +1041,9 @@ Linker Language And ID
|
|||||||
.. versionadded:: 3.18
|
.. versionadded:: 3.18
|
||||||
|
|
||||||
``1`` when the language used for link step matches ``language`` and the
|
``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
|
CMake's compiler id of the language linker matches any one of the comma-separated
|
||||||
in ``compiler_ids``, otherwise ``0``. This expression is a short form for the
|
entries in ``compiler_ids``, otherwise ``0``. This expression is a short form
|
||||||
combination of ``$<LINK_LANGUAGE:language>`` and
|
for the combination of ``$<LINK_LANGUAGE:language>`` and
|
||||||
``$<LANG_COMPILER_ID:compiler_ids>``. This expression may be used to specify
|
``$<LANG_COMPILER_ID:compiler_ids>``. This expression may be used to specify
|
||||||
link libraries, link options, link directories and link dependencies of a
|
link libraries, link options, link directories and link dependencies of a
|
||||||
particular language and linker combination in a target. For example:
|
particular language and linker combination in a target. For example:
|
||||||
|
|||||||
Reference in New Issue
Block a user