CMAKE_SOURCE_DIR.rst 462 B

12345678910111213
  1. CMAKE_SOURCE_DIR
  2. ----------------
  3. The path to the top level of the source tree.
  4. This is the full path to the top level of the current CMake source
  5. tree. For an in-source build, this would be the same as
  6. :variable:`CMAKE_BINARY_DIR`.
  7. When run in -P script mode, CMake sets the variables
  8. :variable:`CMAKE_BINARY_DIR`, :variable:`CMAKE_SOURCE_DIR`,
  9. :variable:`CMAKE_CURRENT_BINARY_DIR` and
  10. :variable:`CMAKE_CURRENT_SOURCE_DIR` to the current working directory.