mirror of
https://github.com/Kitware/CMake.git
synced 2026-07-11 18:13:40 +00: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. ...
6 lines
200 B
ReStructuredText
6 lines
200 B
ReStructuredText
CMAKE_CURRENT_FUNCTION_LIST_FILE
|
|
--------------------------------
|
|
|
|
When executing code inside a :command:`function`, this variable
|
|
contains the full path to the listfile declaring a current function.
|