CMAKE_PARENT_LIST_FILE — CMake 4.3.2 Documentation

# CMAKE_PARENT_LIST_FILE

Full path to the CMake file that included the current one.

While processing a CMake file loaded by `include()` or `find_package()` this variable contains the full path to the file including it.

While processing a `CMakeLists.txt` file, even in subdirectories, this variable is not defined. See policy `CMP0198`.

While processing a `cmake -P` script, this variable is not defined in the outermost script.

See also `CMAKE_CURRENT_LIST_FILE`.