CMP0021.rst 882 B

123456789101112131415161718192021
  1. CMP0021
  2. -------
  3. Fatal error on relative paths in :prop_tgt:`INCLUDE_DIRECTORIES` target
  4. property.
  5. CMake 2.8.10.2 and lower allowed the :prop_tgt:`INCLUDE_DIRECTORIES` target
  6. property to contain relative paths. The base path for such relative
  7. entries is not well defined. CMake 2.8.12 issues a ``FATAL_ERROR`` if the
  8. :prop_tgt:`INCLUDE_DIRECTORIES` property contains a relative path.
  9. The ``OLD`` behavior for this policy is not to warn about relative paths
  10. in the ``INCLUDE_DIRECTORIES`` target property. The ``NEW`` behavior for this
  11. policy is to issue a ``FATAL_ERROR`` if ``INCLUDE_DIRECTORIES`` contains a
  12. relative path.
  13. This policy was introduced in CMake version 2.8.12. CMake version
  14. |release| warns when the policy is not set and uses ``OLD`` behavior. Use
  15. the :command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly.
  16. .. include:: DEPRECATED.txt