1CMAKE_SOURCE_DIR
2----------------
3
4The path to the top level of the source tree.
5
6This is the full path to the top level of the current CMake source
7tree.  For an in-source build, this would be the same as
8:variable:`CMAKE_BINARY_DIR`.
9
10When run in ``-P`` script mode, CMake sets the variables
11:variable:`CMAKE_BINARY_DIR`, :variable:`CMAKE_SOURCE_DIR`,
12:variable:`CMAKE_CURRENT_BINARY_DIR` and
13:variable:`CMAKE_CURRENT_SOURCE_DIR` to the current working directory.
14