• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2Note that it is not advisable to populate the ``INSTALL_INTERFACE`` of the
3|INTERFACE_PROPERTY_LINK| of a target with absolute paths to the include
4directories of dependencies.  That would hard-code into installed packages
5the include directory paths for dependencies
6**as found on the machine the package was made on**.
7
8The ``INSTALL_INTERFACE`` of the |INTERFACE_PROPERTY_LINK| is only
9suitable for specifying the required include directories for headers
10provided with the target itself, not those provided by the transitive
11dependencies listed in its :prop_tgt:`INTERFACE_LINK_LIBRARIES` target
12property.  Those dependencies should themselves be targets that specify
13their own header locations in |INTERFACE_PROPERTY_LINK|.
14
15See the :ref:`Creating Relocatable Packages` section of the
16:manual:`cmake-packages(7)` manual for discussion of additional care
17that must be taken when specifying usage requirements while creating
18packages for redistribution.
19