diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2022-11-06 16:17:15 (GMT) |
---|---|---|
committer | Alex Turbov <i.zaufi@gmail.com> | 2022-11-09 19:52:30 (GMT) |
commit | c86ec79d07bb7ad54ddf8739bcc2084af4a1a274 (patch) | |
tree | 45d1d088cf7093596c48f519077ec3e85d9e13af /Help/generator/Ninja Multi-Config.rst | |
parent | 8c6274326d5bfb32e58a4da690138279854803e8 (diff) | |
download | CMake-c86ec79d07bb7ad54ddf8739bcc2084af4a1a274.zip CMake-c86ec79d07bb7ad54ddf8739bcc2084af4a1a274.tar.gz CMake-c86ec79d07bb7ad54ddf8739bcc2084af4a1a274.tar.bz2 |
Help: Use direct refs to genexes instead of ``$<GENEX-NAME>``
Diffstat (limited to 'Help/generator/Ninja Multi-Config.rst')
-rw-r--r-- | Help/generator/Ninja Multi-Config.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Help/generator/Ninja Multi-Config.rst b/Help/generator/Ninja Multi-Config.rst index 2cf823a..f669ad4 100644 --- a/Help/generator/Ninja Multi-Config.rst +++ b/Help/generator/Ninja Multi-Config.rst @@ -106,14 +106,14 @@ If either ``OUTPUT`` or ``BYPRODUCTS`` names a path that is common to more than one configuration (e.g. it does not use any generator expressions), all arguments are evaluated in the command config by default. If all ``OUTPUT`` and ``BYPRODUCTS`` paths are unique to each configuration -(e.g. by using the ``$<CONFIG>`` generator expression), the first argument of +(e.g. by using the :genex:`$<CONFIG>` generator expression), the first argument of ``COMMAND`` is still evaluated in the command config by default, while all subsequent arguments, as well as the arguments to ``DEPENDS`` and ``WORKING_DIRECTORY``, are evaluated in the output config. These defaults can -be overridden with the ``$<OUTPUT_CONFIG:...>`` and ``$<COMMAND_CONFIG:...>`` +be overridden with the :genex:`$<OUTPUT_CONFIG:...>` and :genex:`$<COMMAND_CONFIG:...>` generator-expressions. Note that if a target is specified by its name in ``DEPENDS``, or as the first argument of ``COMMAND``, it is always evaluated -in the command config, even if it is wrapped in ``$<OUTPUT_CONFIG:...>`` +in the command config, even if it is wrapped in :genex:`$<OUTPUT_CONFIG:...>` (because its plain name is not a generator expression). As an example, consider the following: |