CMP0099.rst 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. CMP0099
  2. -------
  3. .. versionadded:: 3.17
  4. Link properties are transitive over private dependencies of static libraries.
  5. In CMake 3.16 and below, evaluation of target properties
  6. :prop_tgt:`INTERFACE_LINK_OPTIONS`, :prop_tgt:`INTERFACE_LINK_DIRECTORIES`,
  7. and :prop_tgt:`INTERFACE_LINK_DEPENDS` during buildsystem generation does not
  8. follow private dependencies of static libraries, which appear in their
  9. :prop_tgt:`INTERFACE_LINK_LIBRARIES` guarded by :genex:`LINK_ONLY` generator
  10. expressions.
  11. Only the libraries themselves are propagated to link the dependent binary.
  12. CMake 3.17 and later prefer to propagate all interface link properties.
  13. This policy provides compatibility for projects that have not been updated
  14. to expect the new behavior.
  15. The ``OLD`` behavior for this policy is to not propagate interface link
  16. properties. The ``NEW`` behavior of this policy is to propagate interface link
  17. properties.
  18. .. versionadded:: 3.30
  19. Policy :policy:`CMP0166` makes :genex:`TARGET_PROPERTY` evaluation of
  20. these three transitive link properties follow private dependencies of
  21. static libraries too.
  22. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.17
  23. .. |WARNS_OR_DOES_NOT_WARN| replace:: does *not* warn
  24. .. include:: STANDARD_ADVICE.txt
  25. .. include:: DEPRECATED.txt