CMake/Tests/RunCMake/try_compile/CMP0066-stderr.txt
Brad King 84db8506ff Deprecate compatibility with CMake versions older than 3.10
Issue a deprecation warning on calls to `cmake_minimum_required` or
`cmake_policy` that set policies based on versions older than 3.10.
Note that the effective policy version includes `...<max>` treatment.
Update the check from commit 3a4791548d (Deprecate compatibility with
CMake versions older than 3.5, 2023-02-09, v3.27.0-rc1~508^2).
2024-10-03 14:18:26 -04:00

34 lines
1.5 KiB
Plaintext

^CMake Deprecation Warning at CMakeLists.txt:[0-9]+ \(cmake_policy\):
Compatibility with CMake < 3\.10 will be removed from a future version of
CMake\.
Update the VERSION argument <min> value or use a \.\.\.<max> suffix to tell
CMake that the project does not need compatibility with older versions\.
+
before try_compile with CMP0066 WARN-default
after try_compile with CMP0066 WARN-default
*
CMake Warning \(dev\) at CMP0066.cmake:[0-9]+ \(try_compile\):
Policy CMP0066 is not set: Honor per-config flags in try_compile\(\)
source-file signature. Run "cmake --help-policy CMP0066" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
For compatibility with older versions of CMake, try_compile is not honoring
caller config-specific compiler flags \(e.g. CMAKE_C_FLAGS_DEBUG\) in the
test project.
Call Stack \(most recent call first\):
CMakeLists.txt:[0-9]+ \(include\)
This warning is for project developers. Use -Wno-dev to suppress it.
*
CMake Deprecation Warning at CMP0066.cmake:[0-9]+ \(cmake_policy\):
The OLD behavior for policy CMP0066 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\)$