summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorMarkus Ferrell <markus.ferrell@kitware.com>2022-07-11 14:28:32 (GMT)
committerMarkus Ferrell <markus.ferrell@kitware.com>2022-07-19 17:06:25 (GMT)
commit033c066543bd9636d87778b4c1d6b15e9a5c7890 (patch)
tree072463887c60d7a9d0dc635e26cc7bd71ae3f35d /Help/command
parent0beb0ec22fe3d9e08a308ab76183ed97d75c6bfb (diff)
downloadCMake-033c066543bd9636d87778b4c1d6b15e9a5c7890.zip
CMake-033c066543bd9636d87778b4c1d6b15e9a5c7890.tar.gz
CMake-033c066543bd9636d87778b4c1d6b15e9a5c7890.tar.bz2
Help: Add see-also refs for flow control commands
Diffstat (limited to 'Help/command')
-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`