2013-10-15 19:17:36 +04:00
|
|
|
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES
|
|
|
|
------------------------------------
|
|
|
|
|
|
|
|
List of public system include directories for a library.
|
|
|
|
|
|
|
|
Targets may populate this property to publish the include directories
|
|
|
|
which contain system headers, and therefore should not result in
|
2014-11-22 14:49:17 +03:00
|
|
|
compiler warnings. The :command:`target_include_directories(SYSTEM)`
|
|
|
|
command signature populates this property with values given to the
|
2015-01-23 02:14:32 +03:00
|
|
|
``PUBLIC`` and ``INTERFACE`` keywords.
|
|
|
|
|
|
|
|
Projects may also get and set the property directly, but must be aware that
|
|
|
|
adding directories to this property does not make those directories used
|
|
|
|
during compilation. Adding directories to this property marks directories
|
|
|
|
as ``SYSTEM`` which otherwise would be used in a non-``SYSTEM`` manner. This
|
|
|
|
can appear similar to 'duplication', so prefer the
|
|
|
|
high-level :command:`target_include_directories(SYSTEM)` command and avoid
|
|
|
|
setting the property by low-level means.
|
2014-11-22 14:49:17 +03:00
|
|
|
|
|
|
|
When target dependencies are specified using :command:`target_link_libraries`,
|
|
|
|
CMake will read this property from all target dependencies to mark the
|
|
|
|
same include directories as containing system headers.
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2014-02-05 17:51:08 +04:00
|
|
|
Contents of ``INTERFACE_SYSTEM_INCLUDE_DIRECTORIES`` may use "generator
|
|
|
|
expressions" with the syntax ``$<...>``. See the
|
2013-10-07 19:10:21 +04:00
|
|
|
:manual:`cmake-generator-expressions(7)` manual for available expressions.
|
2014-02-05 17:51:08 +04:00
|
|
|
See the :manual:`cmake-buildsystem(7)` manual for more on defining
|
|
|
|
buildsystem properties.
|