summaryrefslogtreecommitdiffstats
path: root/Help/command/endforeach.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Help/command/endforeach.rst')
-rw-r--r--Help/command/endforeach.rst8
1 files changed, 6 insertions, 2 deletions
diff --git a/Help/command/endforeach.rst b/Help/command/endforeach.rst
index 9af972b..fd923d5 100644
--- a/Help/command/endforeach.rst
+++ b/Help/command/endforeach.rst
@@ -3,8 +3,12 @@ endforeach
Ends a list of commands in a foreach block.
-::
+.. code-block:: cmake
- endforeach(expression)
+ endforeach([<loop_var>])
See the :command:`foreach` command.
+
+The optional ``<loop_var>`` argument is supported for backward compatibility
+only. If used it must be a verbatim repeat of the ``<loop_var>`` argument of
+the opening ``foreach`` clause.