1CMAKE_CURRENT_LIST_FILE 2----------------------- 3 4Full path to the listfile currently being processed. 5 6As CMake processes the listfiles in your project this variable will 7always be set to the one currently being processed. The value has 8dynamic scope. When CMake starts processing commands in a source file 9it sets this variable to the location of the file. When CMake 10finishes processing commands from the file it restores the previous 11value. Therefore the value of the variable inside a macro or function 12is the file invoking the bottom-most entry on the call stack, not the 13file containing the macro or function definition. 14 15See also :variable:`CMAKE_PARENT_LIST_FILE`. 16