• CMAKE_CURRENT_LIST_FILE: Full path to the listfile currently being processed.

    As CMake processes the listfiles in your project this variable will always be set to the one currently being processed. See also CMAKE_PARENT_LIST_FILE.