summaryrefslogtreecommitdiffstats
path: root/Help/guide/tutorial/Adding Generator Expressions.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-18 16:28:02 (GMT)
committerBrad King <brad.king@kitware.com>2021-06-18 16:31:45 (GMT)
commit73898c4922a8d495d4a5907ca8f072d1c4822ec1 (patch)
tree32261eb84a5043961a575e3727946d7f0304bf92 /Help/guide/tutorial/Adding Generator Expressions.rst
parentd64d2d12c39f54f953fa946cf01fedf33ee2db70 (diff)
downloadCMake-73898c4922a8d495d4a5907ca8f072d1c4822ec1.zip
CMake-73898c4922a8d495d4a5907ca8f072d1c4822ec1.tar.gz
CMake-73898c4922a8d495d4a5907ca8f072d1c4822ec1.tar.bz2
Tutorial: Make code snippets linkable
Extend the change from commit 9e5bbb69ea (Tutorial: Add captions for code blocks, 2021-06-11) to also add a Sphinx named target to code blocks. Name each target after the change the code block makes.
Diffstat (limited to 'Help/guide/tutorial/Adding Generator Expressions.rst')
-rw-r--r--Help/guide/tutorial/Adding Generator Expressions.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Help/guide/tutorial/Adding Generator Expressions.rst b/Help/guide/tutorial/Adding Generator Expressions.rst
index b21fc62..55acb34 100644
--- a/Help/guide/tutorial/Adding Generator Expressions.rst
+++ b/Help/guide/tutorial/Adding Generator Expressions.rst
@@ -39,6 +39,7 @@ So the following code:
.. literalinclude:: Step10/CMakeLists.txt
:caption: CMakeLists.txt
+ :name: CMakeLists.txt-CXX_STANDARD-variable-remove
:language: cmake
:start-after: project(Tutorial VERSION 1.0)
:end-before: # control where the static and shared libraries are built so that on windows
@@ -47,6 +48,7 @@ Would be replaced with:
.. literalinclude:: Step11/CMakeLists.txt
:caption: CMakeLists.txt
+ :name: CMakeLists.txt-cxx_std-feature
:language: cmake
:start-after: project(Tutorial VERSION 1.0)
:end-before: # add compiler warning flags just when building this project via
@@ -59,6 +61,7 @@ of compiler ids as seen below:
.. literalinclude:: Step11/CMakeLists.txt
:caption: CMakeLists.txt
+ :name: CMakeLists.txt-target_compile_options-genex
:language: cmake
:start-after: # the BUILD_INTERFACE genex
:end-before: # control where the static and shared libraries are built so that on windows