INTERFACE_SYSTEM_INCLUDE_DIRECTORIES¶
List of public system include directories for a library.
Targets may populate this property to publish the include directorieswhich contain system headers, and therefore should not result incompiler warnings. Additionally, system include directories are searchedafter normal include directories regardless of the order specified.
When thetarget_include_directories() command is given theSYSTEM keyword, it populates this property with values provided after thePUBLIC andINTERFACE keywords.
Projects may also get and set the property directly, but must be aware thatadding directories to this property does not make those directories usedduring compilation. Adding directories to this property marks directoriesas system directories which otherwise would be used in a non-system manner.This can appear similar to duplication, so prefer the high-leveltarget_include_directories() command with theSYSTEM keywordand avoid setting the property directly.
When target dependencies are specified usingtarget_link_libraries(),CMake will read this property from all target dependencies to mark thesame include directories as containing system headers.
Contents ofINTERFACE_SYSTEM_INCLUDE_DIRECTORIES may use "generatorexpressions" with the syntax$<...>. See thecmake-generator-expressions(7) manual for available expressions.See thecmake-buildsystem(7) manual for more on definingbuildsystem properties.
