NO_SYSTEM_FROM_IMPORTED.rst 943 B

1234567891011121314151617181920
  1. NO_SYSTEM_FROM_IMPORTED
  2. -----------------------
  3. Do not treat include directories from the interfaces of consumed
  4. :ref:`imported targets` as ``SYSTEM``.
  5. The contents of the :prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES` target property
  6. of imported targets are treated as ``SYSTEM`` includes by default. If this
  7. property is enabled on a target, compilation of sources in that target will
  8. not treat the contents of the ``INTERFACE_INCLUDE_DIRECTORIES`` of consumed
  9. imported targets as system includes. Either way, entries of
  10. :prop_tgt:`INTERFACE_SYSTEM_INCLUDE_DIRECTORIES` are not affected,
  11. and will always be treated as ``SYSTEM`` include directories.
  12. This property is initialized by the value of the
  13. :variable:`CMAKE_NO_SYSTEM_FROM_IMPORTED` variable if it is set when a target
  14. is created.
  15. See the :prop_tgt:`IMPORTED_NO_SYSTEM` target property to set this behavior
  16. on the target providing the include directories rather than consuming them.