summaryrefslogtreecommitdiff
path: root/Help/manual
diff options
context:
space:
mode:
authorHinell <al.neodim@gmail.com>2022-09-07 17:53:30 +0300
committerBrad King <brad.king@kitware.com>2022-09-16 10:54:27 -0400
commit3d31f99b744f97d25cbead8aaa55ce8bcb85367b (patch)
tree4b2e0d4838ed767cac16d2a1b1308e5f47ac611a /Help/manual
parentcabba23ab270eb5cc672c43265f9eb3cb7dda8cc (diff)
downloadcmake-3d31f99b744f97d25cbead8aaa55ce8bcb85367b.tar.gz
Help: Link from usage requirement commands to detailed explanation
Augment vague mentions of "Transitive Usage Requirements" with links to a detailed explanation. Fixes: #23799
Diffstat (limited to 'Help/manual')
-rw-r--r--Help/manual/cmake-buildsystem.7.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/Help/manual/cmake-buildsystem.7.rst b/Help/manual/cmake-buildsystem.7.rst
index bceff2d895..b14160c3c6 100644
--- a/Help/manual/cmake-buildsystem.7.rst
+++ b/Help/manual/cmake-buildsystem.7.rst
@@ -257,7 +257,7 @@ targets in multiple different directories convenient through use of the
Transitive Usage Requirements
-----------------------------
-The usage requirements of a target can transitively propagate to dependents.
+The usage requirements of a target can transitively propagate to the dependents.
The :command:`target_link_libraries` command has ``PRIVATE``,
``INTERFACE`` and ``PUBLIC`` keywords to control the propagation.
@@ -279,8 +279,10 @@ The :command:`target_link_libraries` command has ``PRIVATE``,
# consumer is compiled with -DUSING_ARCHIVE_LIB
target_link_libraries(consumer archiveExtras)
-Because ``archive`` is a ``PUBLIC`` dependency of ``archiveExtras``, the
-usage requirements of it are propagated to ``consumer`` too. Because
+Because the ``archive`` is a ``PUBLIC`` dependency of ``archiveExtras``, the
+usage requirements of it are propagated to ``consumer`` too.
+
+Because
``serialization`` is a ``PRIVATE`` dependency of ``archiveExtras``, the usage
requirements of it are not propagated to ``consumer``.