CMP0081.rst 998 B

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