1LINK_INTERFACE_LIBRARIES 2------------------------ 3 4List public interface libraries for a shared library or executable. 5 6By default linking to a shared library target transitively links to 7targets with which the library itself was linked. For an executable 8with exports (see the :prop_tgt:`ENABLE_EXPORTS` target property) no 9default transitive link dependencies are used. This property replaces the default 10transitive link dependencies with an explicit list. When the target 11is linked into another target using the :command:`target_link_libraries` 12command, the libraries listed (and recursively 13their link interface libraries) will be provided to the other target 14also. If the list is empty then no transitive link dependencies will 15be incorporated when this target is linked into another target even if 16the default set is non-empty. This property is initialized by the 17value of the :variable:`CMAKE_LINK_INTERFACE_LIBRARIES` variable if it is 18set when a target is created. This property is ignored for ``STATIC`` 19libraries. 20 21This property is overridden by the :prop_tgt:`INTERFACE_LINK_LIBRARIES` 22property if policy :policy:`CMP0022` is ``NEW``. 23 24This property is deprecated. Use :prop_tgt:`INTERFACE_LINK_LIBRARIES` 25instead. 26 27Creating Relocatable Packages 28^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 29 30.. |INTERFACE_PROPERTY_LINK| replace:: ``LINK_INTERFACE_LIBRARIES`` 31.. include:: /include/INTERFACE_LINK_LIBRARIES_WARNING.txt 32