endfunction.rst 337 B

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