summaryrefslogtreecommitdiffstats
path: root/Help/command/add_library.rst
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2022-11-06 16:17:15 (GMT)
committerAlex Turbov <i.zaufi@gmail.com>2022-11-09 19:52:30 (GMT)
commitc86ec79d07bb7ad54ddf8739bcc2084af4a1a274 (patch)
tree45d1d088cf7093596c48f519077ec3e85d9e13af /Help/command/add_library.rst
parent8c6274326d5bfb32e58a4da690138279854803e8 (diff)
downloadCMake-c86ec79d07bb7ad54ddf8739bcc2084af4a1a274.zip
CMake-c86ec79d07bb7ad54ddf8739bcc2084af4a1a274.tar.gz
CMake-c86ec79d07bb7ad54ddf8739bcc2084af4a1a274.tar.bz2
Help: Use direct refs to genexes instead of ``$<GENEX-NAME>``
Diffstat (limited to 'Help/command/add_library.rst')
-rw-r--r--Help/command/add_library.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Help/command/add_library.rst b/Help/command/add_library.rst
index 7dc4365..9d73a60 100644
--- a/Help/command/add_library.rst
+++ b/Help/command/add_library.rst
@@ -85,8 +85,8 @@ Creates an :ref:`Object Library <Object Libraries>`. An object library
compiles source files but does not archive or link their object files into a
library. Instead other targets created by :command:`add_library` or
:command:`add_executable` may reference the objects using an expression of the
-form ``$<TARGET_OBJECTS:objlib>`` as a source, where ``objlib`` is the
-object library name. For example:
+form :genex:`$\<TARGET_OBJECTS:objlib\> <TARGET_OBJECTS>` as a source, where
+``objlib`` is the object library name. For example:
.. code-block:: cmake
@@ -101,7 +101,7 @@ They may contain custom commands generating such sources, but not
``PRE_BUILD``, ``PRE_LINK``, or ``POST_BUILD`` commands. Some native build
systems (such as Xcode) may not like targets that have only object files, so
consider adding at least one real source file to any target that references
-``$<TARGET_OBJECTS:objlib>``.
+:genex:`$\<TARGET_OBJECTS:objlib\> <TARGET_OBJECTS>`.
.. versionadded:: 3.12
Object libraries can be linked to with :command:`target_link_libraries`.