CMP0073.rst 1.1 KB

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