8fc85eed18fe7764f1bb7e0743b991d047c02b84
[platform/upstream/cmake.git] / Help / variable / CMAKE_CURRENT_BINARY_DIR.rst
1 CMAKE_CURRENT_BINARY_DIR
2 ------------------------
3
4 The path to the binary directory currently being processed.
5
6 This is the full path to the build directory that is currently being
7 processed by cmake.  Each directory added by :command:`add_subdirectory` will
8 create a binary directory in the build tree, and as it is being
9 processed this variable will be set.  For in-source builds this is the
10 current source directory being processed.
11
12 When run in -P script mode, CMake sets the variables
13 :variable:`CMAKE_BINARY_DIR`, :variable:`CMAKE_SOURCE_DIR`,
14 :variable:`CMAKE_CURRENT_BINARY_DIR` and
15 :variable:`CMAKE_CURRENT_SOURCE_DIR` to the current working directory.