cmake/Help/policy/CMP0001.rst

22 lines
857 B
ReStructuredText
Raw Normal View History

2014-08-03 19:52:23 +02:00
CMP0001
-------
2019-11-11 23:01:05 +01:00
``CMAKE_BACKWARDS_COMPATIBILITY`` should no longer be used.
2014-08-03 19:52:23 +02:00
2019-11-11 23:01:05 +01:00
The behavior is to check ``CMAKE_BACKWARDS_COMPATIBILITY`` and present
it to the user. The ``NEW`` behavior is to ignore
2014-08-03 19:52:23 +02:00
CMAKE_BACKWARDS_COMPATIBILITY completely.
2019-11-11 23:01:05 +01:00
In CMake 2.4 and below the variable ``CMAKE_BACKWARDS_COMPATIBILITY`` was
2014-08-03 19:52:23 +02:00
used to request compatibility with earlier versions of CMake. In
CMake 2.6 and above all compatibility issues are handled by policies
2019-11-11 23:01:05 +01:00
and the :command:`cmake_policy` command. However, CMake must still check
``CMAKE_BACKWARDS_COMPATIBILITY`` for projects written for CMake 2.4 and
2014-08-03 19:52:23 +02:00
below.
This policy was introduced in CMake version 2.6.0. CMake version
2019-11-11 23:01:05 +01: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-08-17 11:37:30 +02:00
.. include:: DEPRECATED.txt