diff options
author | Brad King <brad.king@kitware.com> | 2021-10-15 17:03:31 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-10-15 17:04:19 (GMT) |
commit | 14d98bcfe6fa1dd2f4220e50e99ec099939496d5 (patch) | |
tree | 98137c1b2c2d5b92caca0dff5d03a67e5998e5e1 /Help/prop_tgt/IMPORTED_NO_SYSTEM.rst | |
parent | 7df0541055167d556d866000f8da4b0e7f186b92 (diff) | |
download | CMake-14d98bcfe6fa1dd2f4220e50e99ec099939496d5.zip CMake-14d98bcfe6fa1dd2f4220e50e99ec099939496d5.tar.gz CMake-14d98bcfe6fa1dd2f4220e50e99ec099939496d5.tar.bz2 |
export: Propagate IMPORTED_NO_SYSTEM target property to consumers
Enabling `IMPORTED_NO_SYSTEM` on a target built within the project has
no effect on the build system, but it is still a useful way to set the
property on imported targets generated by `install(EXPORT)` and
`export()`.
Issue: #17364
Diffstat (limited to 'Help/prop_tgt/IMPORTED_NO_SYSTEM.rst')
-rw-r--r-- | Help/prop_tgt/IMPORTED_NO_SYSTEM.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Help/prop_tgt/IMPORTED_NO_SYSTEM.rst b/Help/prop_tgt/IMPORTED_NO_SYSTEM.rst index e9349db..cc726d1 100644 --- a/Help/prop_tgt/IMPORTED_NO_SYSTEM.rst +++ b/Help/prop_tgt/IMPORTED_NO_SYSTEM.rst @@ -8,7 +8,9 @@ a ``SYSTEM`` library. This has the following effects: as ``SYSTEM`` include directories when compiling consumers, as they would be by default. -Ignored for non-imported targets. +This property can also be enabled on a non-imported target. Doing so does +not affect the build system, but does tell the :command:`install(EXPORT)` and +:command:`export` commands to enable it on the imported targets they generate. See the :prop_tgt:`NO_SYSTEM_FROM_IMPORTED` target property to set this behavior on the target consuming the include directories rather than |