summaryrefslogtreecommitdiff
path: root/Help/variable/CMAKE_CURRENT_FUNCTION.rst
blob: fb7f61060a337f0d03325864d64534f042eab3fb (plain)
1
2
3
4
5
6
7
8
9
10
CMAKE_CURRENT_FUNCTION
----------------------

When executing code inside a :command:`function`, this variable
contains the name of the current function.  It can be useful for
diagnostic or debug messages.

See also :variable:`CMAKE_CURRENT_FUNCTION_LIST_DIR`,
:variable:`CMAKE_CURRENT_FUNCTION_LIST_FILE` and
:variable:`CMAKE_CURRENT_FUNCTION_LIST_LINE`.