Is there any plan to introduce CMAKE_CURRENT_MACRO_LIST_DIR
which works like the CMAKE_CURRENT_FUNCTION_LIST_DIR
that was added in CMake 3.17? I have run into a use case related to the setup up an environment. There I can’t use a function, but have to use a macro, because things in the parent scope have to be changed and some local CMake files have to be included. My current work-around is what had to be done before CMAKE_CURRENT_FUNCTION_LIST_DIR existed. Create a helper var that stores CMAKE_CURRENT_LIST_DIR and then use this in the macro - hoping nobody modified it.
Thanks, Axel