CMP0001.rst 857 B

123456789101112131415161718192021
  1. CMP0001
  2. -------
  3. ``CMAKE_BACKWARDS_COMPATIBILITY`` should no longer be used.
  4. The behavior is to check ``CMAKE_BACKWARDS_COMPATIBILITY`` and present
  5. it to the user. The ``NEW`` behavior is to ignore
  6. CMAKE_BACKWARDS_COMPATIBILITY completely.
  7. In CMake 2.4 and below the variable ``CMAKE_BACKWARDS_COMPATIBILITY`` was
  8. used to request compatibility with earlier versions of CMake. In
  9. CMake 2.6 and above all compatibility issues are handled by policies
  10. and the :command:`cmake_policy` command. However, CMake must still check
  11. ``CMAKE_BACKWARDS_COMPATIBILITY`` for projects written for CMake 2.4 and
  12. below.
  13. This policy was introduced in CMake version 2.6.0. 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