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