diff options
author | Craig Scott <craig.scott@crascit.com> | 2022-01-30 11:59:57 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2022-01-31 05:24:07 (GMT) |
commit | 3efa3251e9ebd7d6a5e396152c7a14f9aa529f02 (patch) | |
tree | 36aec7ae2614a39b2e92292a85e329844f06f14c /Help/include | |
parent | 4b033ca0eb486fa23f58e4df2f2a7d3539ca0a3f (diff) | |
download | CMake-3efa3251e9ebd7d6a5e396152c7a14f9aa529f02.zip CMake-3efa3251e9ebd7d6a5e396152c7a14f9aa529f02.tar.gz CMake-3efa3251e9ebd7d6a5e396152c7a14f9aa529f02.tar.bz2 |
Help: Clarify relative path handling for target_include_directories()
Fixes: #22853
Diffstat (limited to 'Help/include')
-rw-r--r-- | Help/include/INTERFACE_INCLUDE_DIRECTORIES_WARNING.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Help/include/INTERFACE_INCLUDE_DIRECTORIES_WARNING.txt b/Help/include/INTERFACE_INCLUDE_DIRECTORIES_WARNING.txt index a54d728..73e1907 100644 --- a/Help/include/INTERFACE_INCLUDE_DIRECTORIES_WARNING.txt +++ b/Help/include/INTERFACE_INCLUDE_DIRECTORIES_WARNING.txt @@ -1,11 +1,11 @@ -Note that it is not advisable to populate the ``INSTALL_INTERFACE`` of the -|INTERFACE_PROPERTY_LINK| of a target with absolute paths to the include +Note that it is not advisable to populate the :genex:`INSTALL_INTERFACE` of +the |INTERFACE_PROPERTY_LINK| of a target with absolute paths to the include directories of dependencies. That would hard-code into installed packages the include directory paths for dependencies **as found on the machine the package was made on**. -The ``INSTALL_INTERFACE`` of the |INTERFACE_PROPERTY_LINK| is only +The :genex:`INSTALL_INTERFACE` of the |INTERFACE_PROPERTY_LINK| is only suitable for specifying the required include directories for headers provided with the target itself, not those provided by the transitive dependencies listed in its :prop_tgt:`INTERFACE_LINK_LIBRARIES` target |