https://github.com/Kitware/CMake
Raw File
Tip revision: f65cebf51a2cf3af2017fd9b03c685c77da00c74 authored by Brad King on 27 October 2021, 13:51:39 UTC
CMake 3.21.4
Tip revision: f65cebf
endforeach.rst
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.
back to top