summaryrefslogtreecommitdiffstats
path: root/Help/guide
diff options
context:
space:
mode:
authorHinell <al.neodim@gmail.com>2022-09-07 14:53:30 (GMT)
committerBrad King <brad.king@kitware.com>2022-09-16 14:54:27 (GMT)
commit3d31f99b744f97d25cbead8aaa55ce8bcb85367b (patch)
tree4b2e0d4838ed767cac16d2a1b1308e5f47ac611a /Help/guide
parentcabba23ab270eb5cc672c43265f9eb3cb7dda8cc (diff)
downloadCMake-3d31f99b744f97d25cbead8aaa55ce8bcb85367b.zip
CMake-3d31f99b744f97d25cbead8aaa55ce8bcb85367b.tar.gz
CMake-3d31f99b744f97d25cbead8aaa55ce8bcb85367b.tar.bz2
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/guide')
-rw-r--r--Help/guide/tutorial/Adding Usage Requirements for a Library.rst14
1 files changed, 9 insertions, 5 deletions
diff --git a/Help/guide/tutorial/Adding Usage Requirements for a Library.rst b/Help/guide/tutorial/Adding Usage Requirements for a Library.rst
index b521896..9d3bf64 100644
--- a/Help/guide/tutorial/Adding Usage Requirements for a Library.rst
+++ b/Help/guide/tutorial/Adding Usage Requirements for a Library.rst
@@ -4,15 +4,20 @@ Step 3: Adding Usage Requirements for a Library
Exercise 1 - Adding Usage Requirements for a Library
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-Usage requirements allow for far better control over a library or
-executable's link and include line while also giving more control over the
-transitive property of targets inside CMake. The primary commands that
+:ref:`Usage requirements <Target Usage Requirements>` of a target parameters
+allow for far better control over a library or executable's link and include
+line while also giving more control over the transitive property of targets
+inside CMake. The primary commands that
leverage usage requirements are:
* :command:`target_compile_definitions`
* :command:`target_compile_options`
* :command:`target_include_directories`
-* :command:`target_link_libraries`
+* :command:`target_link_directories`
+* :command:`target_link_options`
+* :command:`target_precompile_headers`
+* :command:`target_sources`
+
Goal
----
@@ -22,7 +27,6 @@ Add usage requirements for a library.
Helpful Materials
-----------------
-* :command:`target_include_directories`
* :variable:`CMAKE_CURRENT_SOURCE_DIR`
Files to Edit