CMAKE_INCLUDE_CURRENT_DIR.rst 573 B

12345678910111213
  1. CMAKE_INCLUDE_CURRENT_DIR
  2. -------------------------
  3. Automatically add the current source- and build directories to the include path.
  4. If this variable is enabled, CMake automatically adds in each
  5. directory ${CMAKE_CURRENT_SOURCE_DIR} and ${CMAKE_CURRENT_BINARY_DIR}
  6. to the include path for this directory. These additional include
  7. directories do not propagate down to subdirectories. This is useful
  8. mainly for out-of-source builds, where files generated into the build
  9. tree are included by files located in the source tree.
  10. By default CMAKE_INCLUDE_CURRENT_DIR is OFF.