https://github.com/Kitware/CMake
Raw File
Tip revision: 498b7da2e471fd8ef5a41433505358df4f117044 authored by Brad King on 24 February 2021, 16:21:15 UTC
CMake 3.20.0-rc2
Tip revision: 498b7da
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