On this page
IMPORTED_NO_SYSTEM
New in version 3.23.
Specifies that an Imported Target is not a SYSTEM
library. This has the following effects:
- Entries of
INTERFACE_INCLUDE_DIRECTORIES
are not treated asSYSTEM
include directories when compiling consumers, as they would be by default. Entries ofINTERFACE_SYSTEM_INCLUDE_DIRECTORIES
are not affected, and will always be treated asSYSTEM
include directories.
This property can also be enabled on a non-imported target. Doing so does not affect the build system, but does tell the install(EXPORT)
and export()
commands to enable it on the imported targets they generate.
See the NO_SYSTEM_FROM_IMPORTED
target property to set this behavior on the target consuming the include directories rather than providing them.
© 2000–2022 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.23/prop_tgt/IMPORTED_NO_SYSTEM.html