INCLUDE_DIRECTORIES.rst 810 B

123456789101112131415161718
  1. INCLUDE_DIRECTORIES
  2. -------------------
  3. List of preprocessor include file search directories.
  4. This property holds a :ref:`;-list <CMake Language Lists>` of paths
  5. and will be added to the list of include directories when this
  6. source file builds. These directories will take precedence over directories
  7. defined at target level except for :generator:`Xcode` generator due to technical
  8. limitations.
  9. Relative paths should not be added to this property directly.
  10. Contents of ``INCLUDE_DIRECTORIES`` may use "generator expressions" with
  11. the syntax ``$<...>``. See the :manual:`cmake-generator-expressions(7)` manual
  12. for available expressions. However, :generator:`Xcode` does not support
  13. per-config per-source settings, so expressions that depend on the build
  14. configuration are not allowed with that generator.