CMP0099.rst 1.0 KB

123456789101112131415161718192021222324
  1. CMP0099
  2. -------
  3. Target link properties :prop_tgt:`INTERFACE_LINK_OPTIONS`,
  4. :prop_tgt:`INTERFACE_LINK_DIRECTORIES` and :prop_tgt:`INTERFACE_LINK_DEPENDS`
  5. are now transitive over private dependencies of static libraries.
  6. In CMake 3.16 and below the interface link properties attached to libraries
  7. are not propagated for private dependencies of static libraries.
  8. Only the libraries themselves are propagated to link the dependent binary.
  9. CMake 3.17 and later prefer to propagate all interface link properties.
  10. This policy provides compatibility for projects that have not been updated
  11. to expect the new behavior.
  12. The ``OLD`` behavior for this policy is to not propagate interface link
  13. properties. The ``NEW`` behavior of this policy is to propagate interface link
  14. properties.
  15. This policy was introduced in CMake version 3.17. Use the
  16. :command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly.
  17. Unlike many policies, CMake version |release| does *not* warn
  18. when this policy is not set and simply uses ``OLD`` behavior.
  19. .. include:: DEPRECATED.txt