summaryrefslogtreecommitdiffstats
path: root/Help/guide/tutorial/Adding System Introspection.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Help/guide/tutorial/Adding System Introspection.rst')
-rw-r--r--Help/guide/tutorial/Adding System Introspection.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Help/guide/tutorial/Adding System Introspection.rst b/Help/guide/tutorial/Adding System Introspection.rst
index c11f793..7210a8d 100644
--- a/Help/guide/tutorial/Adding System Introspection.rst
+++ b/Help/guide/tutorial/Adding System Introspection.rst
@@ -16,6 +16,7 @@ the ``m`` library. If ``log`` and ``exp`` are not initially found, require the
.. literalinclude:: Step6/MathFunctions/CMakeLists.txt
:caption: MathFunctions/CMakeLists.txt
+ :name: MathFunctions/CMakeLists.txt-check_symbol_exists
:language: cmake
:start-after: # does this system provide the log and exp functions?
:end-before: # add compile definitions
@@ -25,6 +26,7 @@ If available, use :command:`target_compile_definitions` to specify
.. literalinclude:: Step6/MathFunctions/CMakeLists.txt
:caption: MathFunctions/CMakeLists.txt
+ :name: MathFunctions/CMakeLists.txt-target_compile_definitions
:language: cmake
:start-after: # add compile definitions
:end-before: # install rules
@@ -36,6 +38,7 @@ the ``mysqrt`` function in ``MathFunctions/mysqrt.cxx`` (don't forget the
.. literalinclude:: Step6/MathFunctions/mysqrt.cxx
:caption: MathFunctions/mysqrt.cxx
+ :name: MathFunctions/mysqrt.cxx-ifdef
:language: c++
:start-after: // if we have both log and exp then use them
:end-before: // do ten iterations
@@ -44,6 +47,7 @@ We will also need to modify ``mysqrt.cxx`` to include ``cmath``.
.. literalinclude:: Step6/MathFunctions/mysqrt.cxx
:caption: MathFunctions/mysqrt.cxx
+ :name: MathFunctions/mysqrt.cxx-include-cmath
:language: c++
:end-before: #include <iostream>