CMP0073.rst 1022 B

1234567891011121314151617181920212223242526
  1. CMP0073
  2. -------
  3. .. versionadded:: 3.12
  4. Do not produce legacy ``_LIB_DEPENDS`` cache entries.
  5. Ancient CMake versions once used ``<tgt>_LIB_DEPENDS`` cache entries to
  6. propagate library link dependencies. This has long been done by other
  7. means, leaving the :command:`export_library_dependencies` command as the
  8. only user of these values. That command has long been disallowed by
  9. policy :policy:`CMP0033`, but the ``<tgt>_LIB_DEPENDS`` cache entries
  10. were left for compatibility with possible non-standard uses by projects.
  11. CMake 3.12 and above now prefer to not produce these cache entries
  12. at all. This policy provides compatibility with projects that have
  13. not been updated to avoid using them.
  14. The ``OLD`` behavior for this policy is to set ``<tgt>_LIB_DEPENDS`` cache
  15. entries. The ``NEW`` behavior for this policy is to not set them.
  16. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.12
  17. .. |WARNS_OR_DOES_NOT_WARN| replace:: does *not* warn
  18. .. include:: include/STANDARD_ADVICE.rst
  19. .. include:: include/DEPRECATED.rst