On this page
SYSTEM
New in version 3.25.
Specifies that a target is a SYSTEM
library. This has the following effects:
- Entries of
INTERFACE_INCLUDE_DIRECTORIES
are treated asSYSTEM
include directories when compiling consumers. Entries ofINTERFACE_SYSTEM_INCLUDE_DIRECTORIES
are not affected, and will always be treated asSYSTEM
include directories.
For imported targets, this property defaults to true, which means that their INTERFACE_INCLUDE_DIRECTORIES
are treated as SYSTEM
by default. If their SYSTEM
property is false, then their INTERFACE_INCLUDE_DIRECTORIES
will not be treated as SYSTEM
, regardless of the value of the IMPORTED_NO_SYSTEM
property.
This target property is initialized from the SYSTEM
directory property when the target is created.
© 2000–2022 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.25/prop_tgt/SYSTEM.html