CMAKE_CURRENT_FUNCTION
When executing code inside a function()
, this variable contains the name of the current function. It can be useful for diagnostic or debug messages.
See also CMAKE_CURRENT_FUNCTION_LIST_DIR
, CMAKE_CURRENT_FUNCTION_LIST_FILE
and CMAKE_CURRENT_FUNCTION_LIST_LINE
.
© 2000–2020 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.17/variable/CMAKE_CURRENT_FUNCTION.html