INCLUDE_DIRECTORIES.rst 852 B

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