CMP0021.rst 787 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. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 2.8.12
  14. .. |WARNS_OR_DOES_NOT_WARN| replace:: warns
  15. .. include:: STANDARD_ADVICE.txt
  16. .. include:: DEPRECATED.txt