CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE.rst 563 B

123456789101112
  1. CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE
  2. --------------------------------------
  3. Automatically add the current source- and build directories to the
  4. :prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES` target property.
  5. If this variable is enabled, CMake automatically adds for each shared
  6. library target, static library target, module target and executable
  7. target, :variable:`CMAKE_CURRENT_SOURCE_DIR` and
  8. :variable:`CMAKE_CURRENT_BINARY_DIR` to
  9. the :prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES` target property. By default
  10. ``CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE`` is ``OFF``.