2013-10-15 15:17:36 +00:00
|
|
|
CMP0001
|
|
|
|
-------
|
|
|
|
|
2019-03-26 15:13:41 +00:00
|
|
|
``CMAKE_BACKWARDS_COMPATIBILITY`` should no longer be used.
|
2013-10-15 15:17:36 +00:00
|
|
|
|
2019-03-26 15:13:41 +00:00
|
|
|
The behavior is to check ``CMAKE_BACKWARDS_COMPATIBILITY`` and present
|
|
|
|
it to the user. The ``NEW`` behavior is to ignore
|
2013-10-15 15:17:36 +00:00
|
|
|
CMAKE_BACKWARDS_COMPATIBILITY completely.
|
|
|
|
|
2019-03-26 15:13:41 +00:00
|
|
|
In CMake 2.4 and below the variable ``CMAKE_BACKWARDS_COMPATIBILITY`` was
|
2013-10-15 15:17:36 +00:00
|
|
|
used to request compatibility with earlier versions of CMake. In
|
|
|
|
CMake 2.6 and above all compatibility issues are handled by policies
|
2019-03-26 15:13:41 +00:00
|
|
|
and the :command:`cmake_policy` command. However, CMake must still check
|
|
|
|
``CMAKE_BACKWARDS_COMPATIBILITY`` for projects written for CMake 2.4 and
|
2013-10-15 15:17:36 +00:00
|
|
|
below.
|
|
|
|
|
|
|
|
This policy was introduced in CMake version 2.6.0. CMake version
|
2019-03-26 15:13:41 +00:00
|
|
|
|release| warns when the policy is not set and uses ``OLD`` behavior. Use
|
|
|
|
the :command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly.
|
2015-06-09 13:29:41 +00:00
|
|
|
|
|
|
|
.. include:: DEPRECATED.txt
|