summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-07-20 13:27:47 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-07-20 13:27:55 (GMT)
commit12192e7f9424626d7fe9be1c95fcb429718bb58b (patch)
treebdc453ca0f1f34a09a753bf86c49cec37f416af5
parent90bee0692846a82be402529a7d21aea4a875c147 (diff)
parent033c066543bd9636d87778b4c1d6b15e9a5c7890 (diff)
downloadCMake-12192e7f9424626d7fe9be1c95fcb429718bb58b.zip
CMake-12192e7f9424626d7fe9be1c95fcb429718bb58b.tar.gz
CMake-12192e7f9424626d7fe9be1c95fcb429718bb58b.tar.bz2
Merge topic 'doc_command_links'
033c066543 Help: Add see-also refs for flow control commands Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7467
-rw-r--r--Help/command/foreach.rst8
-rw-r--r--Help/command/function.rst6
-rw-r--r--Help/command/if.rst7
-rw-r--r--Help/command/while.rst8
4 files changed, 29 insertions, 0 deletions
diff --git a/Help/command/foreach.rst b/Help/command/foreach.rst
index d9f54ca..ddf8dfa 100644
--- a/Help/command/foreach.rst
+++ b/Help/command/foreach.rst
@@ -130,3 +130,11 @@ yields
-- en=two, ba=dua
-- en=three, ba=tiga
-- en=four, ba=
+
+See Also
+^^^^^^^^
+
+* :command:`break`
+* :command:`continue`
+* :command:`endforeach`
+* :command:`while`
diff --git a/Help/command/function.rst b/Help/command/function.rst
index 3d25aa4..fc55c03 100644
--- a/Help/command/function.rst
+++ b/Help/command/function.rst
@@ -73,3 +73,9 @@ argument. Referencing to ``ARGV#`` arguments beyond ``ARGC`` have
undefined behavior. Checking that ``ARGC`` is greater than ``#`` is
the only way to ensure that ``ARGV#`` was passed to the function as an
extra argument.
+
+See Also
+^^^^^^^^
+
+* :command:`endfunction`
+* :command:`return`
diff --git a/Help/command/if.rst b/Help/command/if.rst
index c096725..3908a8c 100644
--- a/Help/command/if.rst
+++ b/Help/command/if.rst
@@ -419,3 +419,10 @@ There is no automatic evaluation for environment or cache
:ref:`Variable References`. Their values must be referenced as
``$ENV{<name>}`` or ``$CACHE{<name>}`` wherever the above-documented
condition syntax accepts ``<variable|string>``.
+
+See also
+^^^^^^^^
+
+ * :command:`else`
+ * :command:`elseif`
+ * :command:`endif`
diff --git a/Help/command/while.rst b/Help/command/while.rst
index a4957c1..0bafae5 100644
--- a/Help/command/while.rst
+++ b/Help/command/while.rst
@@ -23,3 +23,11 @@ Per legacy, the :command:`endwhile` command admits
an optional ``<condition>`` argument.
If used, it must be a verbatim repeat of the argument of the opening
``while`` command.
+
+See Also
+^^^^^^^^
+
+ * :command:`break`
+ * :command:`continue`
+ * :command:`foreach`
+ * :command:`endwhile`