1
0

CMP0099.rst 1.1 KB

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