summaryrefslogtreecommitdiff
path: root/share/cmake-3.18/Help/command/endfunction.rst
blob: e27129d8a1f3b2b1ff71dc8040848ae75502d483 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
endfunction
-----------

Ends a list of commands in a function block.

.. code-block:: cmake

  endfunction([<name>])

See the :command:`function` command.

The optional ``<name>`` argument is supported for backward compatibility
only. If used it must be a verbatim repeat of the ``<name>`` argument
of the opening ``function`` command.