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