CMP0081.rst 974 B

12345678910111213141516171819202122
  1. CMP0081
  2. -------
  3. Relative paths not allowed in :prop_tgt:`LINK_DIRECTORIES` target property.
  4. CMake 3.12 and lower allowed the :prop_dir:`LINK_DIRECTORIES` directory
  5. property to contain relative paths. The base path for such relative
  6. entries is not well defined. CMake 3.13 and later will issue a
  7. ``FATAL_ERROR`` if the :prop_tgt:`LINK_DIRECTORIES` target property
  8. (which is initialized by the :prop_dir:`LINK_DIRECTORIES` directory property)
  9. contains a relative path.
  10. The ``OLD`` behavior for this policy is not to warn about relative paths
  11. in the :prop_tgt:`LINK_DIRECTORIES` target property. The ``NEW`` behavior for
  12. this policy is to issue a ``FATAL_ERROR`` if :prop_tgt:`LINK_DIRECTORIES`
  13. contains a relative path.
  14. This policy was introduced in CMake version 3.13. CMake version
  15. |release| warns when the policy is not set and uses ``OLD`` behavior. Use
  16. the :command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly.
  17. .. include:: DEPRECATED.txt