summaryrefslogtreecommitdiffstats
path: root/Help/command/endforeach.rst
blob: fd923d56ad4ab0b4d3d33621115108765ac80dbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
endforeach
----------

Ends a list of commands in a foreach block.

.. code-block:: cmake

  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.