1 CMAKE_CURRENT_BINARY_DIR
2 ------------------------
4 The path to the binary directory currently being processed.
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.
12 When run in :option:`cmake -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.