summaryrefslogtreecommitdiffstats
path: root/Help/variable/CMAKE_CURRENT_FUNCTION.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Help/variable/CMAKE_CURRENT_FUNCTION.rst')
-rw-r--r--Help/variable/CMAKE_CURRENT_FUNCTION.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_CURRENT_FUNCTION.rst b/Help/variable/CMAKE_CURRENT_FUNCTION.rst
new file mode 100644
index 0000000..aa2936c
--- /dev/null
+++ b/Help/variable/CMAKE_CURRENT_FUNCTION.rst
@@ -0,0 +1,6 @@
+CMAKE_CURRENT_FUNCTION
+----------------------
+
+When executing code inside a :command:`function`, this variable
+contains the name of the current function. It can be used for
+diagnostic or debug messages.