1endforeach 2---------- 3 4Ends a list of commands in a foreach block. 5 6.. code-block:: cmake 7 8 endforeach([<loop_var>]) 9 10See the :command:`foreach` command. 11 12The optional ``<loop_var>`` argument is supported for backward compatibility 13only. If used it must be a verbatim repeat of the ``<loop_var>`` argument of 14the opening ``foreach`` clause. 15