mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Issue a deprecation warning on calls to `cmake_minimum_required` or
`cmake_policy` that set policies based on versions older than 2.8.12.
Note that the effective policy version includes `...<max>` treatment.
This is important in combination with commit ca24b70d31 (Export: Specify
a policy range in exported files, 2020-05-16, v3.18.0-rc1~133^2).
14 lines
602 B
ReStructuredText
14 lines
602 B
ReStructuredText
deprecate-policy-old
|
|
--------------------
|
|
|
|
* An explicit deprecation diagnostic was added for policy ``CMP0071``
|
|
(``CMP0071`` and below were already deprecated).
|
|
The :manual:`cmake-policies(7)` manual explains that the OLD behaviors
|
|
of all policies are deprecated and that projects should port to the
|
|
NEW behaviors.
|
|
|
|
* Compatibility with versions of CMake older than 2.8.12 is now deprecated
|
|
and will be removed from a future version. Calls to
|
|
:command:`cmake_minimum_required` or :command:`cmake_policy` that set
|
|
the policy version to an older value now issue a deprecation diagnostic.
|