mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 21:00:17 -06:00
`CMAKE_CURRENT_FUNCTION` Can be used for diagnostic or debugging messages like the `__PRETTY_FUNCTION__` macro of GCC. `CMAKE_CURRENT_FUNCTION_LIST_DIR` Eliminates the necessity of the additional "global" variables inside a module used to access additional "resource" files from functions defined in the module. ...
7 lines
204 B
ReStructuredText
7 lines
204 B
ReStructuredText
CMAKE_CURRENT_FUNCTION
|
|
----------------------
|
|
|
|
When executing code inside a :command:`function`, this variable
|
|
contains the name of the current function. It can be used for
|
|
diagnostic or debug messages.
|