mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 22:58:37 -05:00
9c5e981e60
The OLD behaviors of all policies are deprecated, but only by documentation. Add an explicit deprecation diagnostic for policies introduced in CMake 3.22 and below to encourage projects to port away from setting policies to OLD.
20 lines
968 B
Plaintext
20 lines
968 B
Plaintext
^CMake Deprecation Warning at CMP0128WarnUnset-(C|CXX)\.cmake:[0-9]+ \(cmake_policy\):
|
|
The OLD behavior for policy CMP0128 will be removed from a future version
|
|
of CMake\.
|
|
|
|
The cmake-policies\(7\) manual explains that the OLD behaviors of all
|
|
policies are deprecated and that a policy should be set to OLD only under
|
|
specific short-term circumstances\. Projects should be ported to the NEW
|
|
behavior and not rely on setting a policy to OLD\.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists\.txt:[0-9]+ \(include\)
|
|
+
|
|
CMake Warning \(dev\) in CMakeLists\.txt:
|
|
Policy CMP0128 is not set: Selection of language standard and extension
|
|
flags improved\. Run "cmake --help-policy CMP0128" for policy details\. Use
|
|
the cmake_policy command to set the policy and suppress this warning\.
|
|
|
|
For compatibility with older versions of CMake, compiler extensions won't
|
|
be @opposite@\.
|
|
This warning is for project developers\. Use -Wno-dev to suppress it\.
|