INTERFACE_SYSTEM_INCLUDE_DIRECTORIES.rst 993 B

123456789101112131415161718192021
  1. INTERFACE_SYSTEM_INCLUDE_DIRECTORIES
  2. ------------------------------------
  3. List of public system include directories for a library.
  4. Targets may populate this property to publish the include directories
  5. which contain system headers, and therefore should not result in
  6. compiler warnings. The :command:`target_include_directories(SYSTEM)`
  7. command signature populates this property with values given to the
  8. ``PUBLIC`` and ``INTERFACE`` keywords. Projects may also get and set the
  9. property directly.
  10. When target dependencies are specified using :command:`target_link_libraries`,
  11. CMake will read this property from all target dependencies to mark the
  12. same include directories as containing system headers.
  13. Contents of ``INTERFACE_SYSTEM_INCLUDE_DIRECTORIES`` may use "generator
  14. expressions" with the syntax ``$<...>``. See the
  15. :manual:`cmake-generator-expressions(7)` manual for available expressions.
  16. See the :manual:`cmake-buildsystem(7)` manual for more on defining
  17. buildsystem properties.