https://github.com/Kitware/CMake
Raw File
Tip revision: 0b0df2d0638c1505463039bab0669eeb550b0471 authored by Brad King on 13 October 2020, 16:40:27 UTC
CMake 3.19.0-rc1
Tip revision: 0b0df2d
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