Imported Upstream version 3.25.0
[platform/upstream/cmake.git] / Help / variable / CMAKE_CURRENT_SOURCE_DIR.rst
1 CMAKE_CURRENT_SOURCE_DIR
2 ------------------------
3
4 The path to the source directory currently being processed.
5
6 This is the full path to the source directory that is currently being
7 processed by cmake.
8
9 When run in :option:`cmake -P` script mode, CMake sets the variables
10 :variable:`CMAKE_BINARY_DIR`, :variable:`CMAKE_SOURCE_DIR`,
11 :variable:`CMAKE_CURRENT_BINARY_DIR` and
12 :variable:`CMAKE_CURRENT_SOURCE_DIR` to the current working directory.