summaryrefslogtreecommitdiff
path: root/share/cmake-3.18/Help/command/endfunction.rst
diff options
context:
space:
mode:
Diffstat (limited to 'share/cmake-3.18/Help/command/endfunction.rst')
-rw-r--r--share/cmake-3.18/Help/command/endfunction.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/share/cmake-3.18/Help/command/endfunction.rst b/share/cmake-3.18/Help/command/endfunction.rst
new file mode 100644
index 0000000..e27129d
--- /dev/null
+++ b/share/cmake-3.18/Help/command/endfunction.rst
@@ -0,0 +1,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.