https://github.com/Kitware/CMake
Raw File
Tip revision: 5709a7e572df220655659155d26b2f56cb97acf3 authored by Brad King on 08 March 2023, 15:01:06 UTC
CMake 3.25.3
Tip revision: 5709a7e
CMAKE_CURRENT_FUNCTION.rst
CMAKE_CURRENT_FUNCTION
----------------------

.. versionadded:: 3.17

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`.
back to top