CMAKE_CURRENT_FUNCTIONΒΆ

When executing code inside a function(), this variable contains the name of the current function. It can be used for diagnostic or debug messages.