1CMAKE_CURRENT_BINARY_DIR 2------------------------ 3 4The path to the binary directory currently being processed. 5 6This the full path to the build directory that is currently being 7processed by cmake. Each directory added by :command:`add_subdirectory` will 8create a binary directory in the build tree, and as it is being 9processed this variable will be set. For in-source builds this is the 10current source directory being processed. 11 12When 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. 16