cmake/Help/policy/CMP0001.rst

22 lines
762 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.
2024-04-14 22:45:38 +02:00
.. |INTRODUCED_IN_CMAKE_VERSION| replace:: 2.6.0
.. |WARNS_OR_DOES_NOT_WARN| replace:: warns
.. include:: STANDARD_ADVICE.txt
2015-08-17 11:37:30 +02:00
.. include:: DEPRECATED.txt