CMAKE_CURRENT_BINARY_DIR.rst 659 B

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