https://github.com/Kitware/CMake
Raw File
Tip revision: 7a04f45722b2cbe51e1586cd84d2c5ad90e759ed authored by Brad King on 06 November 2020, 14:19:57 UTC
CMake 3.19.0-rc3
Tip revision: 7a04f45
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