LINK_INTERFACE_LIBRARIES.rst 1.1 KB

12345678910111213141516171819202122
  1. LINK_INTERFACE_LIBRARIES
  2. ------------------------
  3. List public interface libraries for a shared library or executable.
  4. By default linking to a shared library target transitively links to
  5. targets with which the library itself was linked. For an executable
  6. with exports (see the ENABLE_EXPORTS property) no default transitive
  7. link dependencies are used. This property replaces the default
  8. transitive link dependencies with an explicit list. When the target
  9. is linked into another target the libraries listed (and recursively
  10. their link interface libraries) will be provided to the other target
  11. also. If the list is empty then no transitive link dependencies will
  12. be incorporated when this target is linked into another target even if
  13. the default set is non-empty. This property is initialized by the
  14. value of the variable CMAKE_LINK_INTERFACE_LIBRARIES if it is set when
  15. a target is created. This property is ignored for STATIC libraries.
  16. This property is overridden by the INTERFACE_LINK_LIBRARIES property if
  17. policy CMP0022 is NEW.
  18. This property is deprecated. Use INTERFACE_LINK_LIBRARIES instead.