summaryrefslogtreecommitdiffstats
path: root/Help/manual/cmake-buildsystem.7.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-02-10 16:25:10 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-02-10 16:25:10 (GMT)
commit89d49eccc57b0e99924d7abe4a9e768d2ed4e0d4 (patch)
tree83e2dd356358c0a48450e1b3d25d4afba22ad6d7 /Help/manual/cmake-buildsystem.7.rst
parentd7133c0288e82627569071c84dfaa94516deb9eb (diff)
parent0b3e98d9136522664355a1907ae96a716204ca3e (diff)
downloadCMake-89d49eccc57b0e99924d7abe4a9e768d2ed4e0d4.zip
CMake-89d49eccc57b0e99924d7abe4a9e768d2ed4e0d4.tar.gz
CMake-89d49eccc57b0e99924d7abe4a9e768d2ed4e0d4.tar.bz2
Merge topic 'extend-docs'
0b3e98d9 Help: Don't list debuggable properties in cmake-buildsystem manual. 39d08b92 Help: Add additional hyperlink targets ef17e293 Help: Document SYSTEM treatment of IMPORTED target INTERFACE_INCLUDE_DIRS
Diffstat (limited to 'Help/manual/cmake-buildsystem.7.rst')
-rw-r--r--Help/manual/cmake-buildsystem.7.rst16
1 files changed, 12 insertions, 4 deletions
diff --git a/Help/manual/cmake-buildsystem.7.rst b/Help/manual/cmake-buildsystem.7.rst
index 91a9b2f..03eb163 100644
--- a/Help/manual/cmake-buildsystem.7.rst
+++ b/Help/manual/cmake-buildsystem.7.rst
@@ -392,10 +392,8 @@ locality of code which creates a target and code which is responsible for
setting build specifications may make the code more difficult to reason about.
:manual:`cmake(1)` provides a debugging facility to print the origin of the
contents of properties which may be determined by dependencies. The properties
-which can be debugged are :prop_tgt:`INCLUDE_DIRECTORIES`,
-:prop_tgt:`COMPILE_DEFINITIONS`, :prop_tgt:`COMPILE_OPTIONS`,
-:prop_tgt:`AUTOUIC_OPTIONS`, and all properties listed in a
-``COMPATIBLE_INTERFACE_*`` target property:
+which can be debugged are listed in the
+:variable:`CMAKE_DEBUG_TARGET_PROPERTIES` variable documentation:
.. code-block:: cmake
@@ -544,6 +542,8 @@ with either ``-DClimbingStats_FROM_BUILD_LOCATION`` or
``-DClimbingStats_FROM_INSTALL_LOCATION``. For more about packages and
exporting see the :manual:`cmake-packages(7)` manual.
+.. _`Include Directories and Usage Requirements`:
+
Include Directories and Usage Requirements
''''''''''''''''''''''''''''''''''''''''''
@@ -602,6 +602,14 @@ This is equivalent to appending ``${CMAKE_INSTALL_PREFIX}/include`` to the
:prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES` of each of the installed
:prop_tgt:`IMPORTED` targets when generated by :command:`install(EXPORT)`.
+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 with the :prop_tgt:`NO_SYSTEM_FROM_IMPORTED` target property.
+
If a binary target is linked transitively to a Mac OX framework, the
``Headers`` directory of the framework is also treated as a usage requirement.
This has the same effect as passing the framework directory as an include