IMPORTED_NO_SYSTEM — CMake 3.25.1 Documentation

# IMPORTED_NO_SYSTEM

New in version 3.23.

Deprecated since version 3.25: `IMPORTED_NO_SYSTEM` is deprecated. Set `SYSTEM` to OFF instead if you don't want target's include directories to be `SYSTEM` when compiling consumers. Set `EXPORT_NO_SYSTEM` to ON instead if you don't want the include directories of the imported target generated by `install(EXPORT)` and `export()` commands to be `SYSTEM` when compiling consumers.

Specifies that an Imported Target is not a `SYSTEM` library. This has the following effects:

- Entries of `INTERFACE_INCLUDE_DIRECTORIES` are not treated as `SYSTEM` include directories when compiling consumers (regardless of the value of the consumed target's `SYSTEM` property), as they would be by default. Entries of `INTERFACE_SYSTEM_INCLUDE_DIRECTORIES` are not affected, and will always be treated as `SYSTEM` 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.