endforeach ---------- Ends a list of commands in a foreach block. .. code-block:: cmake endforeach([]) See the :command:`foreach` command. The optional ```` argument is supported for backward compatibility only. If used it must be a verbatim repeat of the ```` argument of the opening ``foreach`` clause.