Imported Upstream version 3.25.0
[platform/upstream/cmake.git] / Help / variable / CMAKE_BINARY_DIR.rst
1 CMAKE_BINARY_DIR
2 ----------------
3
4 The path to the top level of the build tree.
5
6 This is the full path to the top level of the current CMake build
7 tree.  For an in-source build, this would be the same as
8 :variable:`CMAKE_SOURCE_DIR`.
9
10 When run in :option:`cmake -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.