• CMAKE_PARENT_LIST_FILE: Full path to the parent listfile of the one currently being processed.

    As CMake processes the listfiles in your project this variable will always be set to the listfile that included or somehow invoked the one currently being processed. See also CMAKE_CURRENT_LIST_FILE.