CMAKE_CURRENT_FUNCTION is empty
It seems CMAKE_CURRENT_FUNCTION
is empty even though it is supposed to give the calling function name.
Small repro example:
function(testfunc)
message(STATUS "Printed from ${CMAKE_CURRENT_FUNCTION}")
endfunction()
testfunc()
tested with cmake version 3.15.2, windows.