diff options
author | JinWang An <jinwang.an@samsung.com> | 2023-02-10 15:21:34 +0900 |
---|---|---|
committer | JinWang An <jinwang.an@samsung.com> | 2023-02-10 15:21:34 +0900 |
commit | 093a937511a119ac536f3941a1c08a7ab347a13d (patch) | |
tree | 573148ad987ff58c9b6f2ecbb4634dc1b893adfe /Help/manual/cmake-buildsystem.7.rst | |
parent | 0bfd73ca0dc3c0b9440dbfbbb1258c1b89b00b07 (diff) | |
download | cmake-093a937511a119ac536f3941a1c08a7ab347a13d.tar.gz cmake-093a937511a119ac536f3941a1c08a7ab347a13d.tar.bz2 cmake-093a937511a119ac536f3941a1c08a7ab347a13d.zip |
Imported Upstream version 3.25.2upstream/3.25.2upstream
Diffstat (limited to 'Help/manual/cmake-buildsystem.7.rst')
-rw-r--r-- | Help/manual/cmake-buildsystem.7.rst | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Help/manual/cmake-buildsystem.7.rst b/Help/manual/cmake-buildsystem.7.rst index b14160c3c..3c09e869e 100644 --- a/Help/manual/cmake-buildsystem.7.rst +++ b/Help/manual/cmake-buildsystem.7.rst @@ -672,14 +672,14 @@ This is equivalent to appending ``${CMAKE_INSTALL_PREFIX}/include`` to the When the :prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES` of an :ref:`imported target <Imported targets>` is consumed, the entries in the -property are treated as ``SYSTEM`` include directories, as if they were -listed in the :prop_tgt:`INTERFACE_SYSTEM_INCLUDE_DIRECTORIES` of the -dependency. This can result in omission of compiler warnings for headers -found in those directories. This behavior for :ref:`imported targets` may -be controlled by setting the :prop_tgt:`NO_SYSTEM_FROM_IMPORTED` target -property on the *consumers* of imported targets, or by setting the -:prop_tgt:`IMPORTED_NO_SYSTEM` target property on the imported targets -themselves. +property may be treated as system include directories. The effects of that +are toolchain-dependent, but one common effect is to omit compiler warnings +for headers found in those directories. The :prop_tgt:`SYSTEM` property of +the installed target determines this behavior (see the +:prop_tgt:`EXPORT_NO_SYSTEM` property for how to modify the installed value +for a target). It is also possible to change how consumers interpret the +system behavior of consumed imported targets by setting the +:prop_tgt:`NO_SYSTEM_FROM_IMPORTED` target property on the *consumer*. If a binary target is linked transitively to a macOS :prop_tgt:`FRAMEWORK`, the ``Headers`` directory of the framework is also treated as a usage requirement. @@ -1049,7 +1049,7 @@ them to a header set using the :command:`target_sources` command: add_library(Eigen INTERFACE) - target_sources(Eigen INTERFACE + target_sources(Eigen PUBLIC FILE_SET HEADERS BASE_DIRS src FILES src/eigen.h src/vector.h src/matrix.h |