mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-28 09:59:20 -05:00
4c4f173876
Since commit 84db8506ff (Deprecate compatibility with CMake versions older
than 3.10, 2024-10-03, v3.31.0-rc1~23^2) the `cmake_minimum_required` and
`cmake_policy` commands warn if the project does not enable policies as
of 3.10 or higher. Clarify the advice given in the warning message about
how to update the version specification, particularly without actually
requiring a newer minimum version of CMake.
31 lines
1.2 KiB
Plaintext
31 lines
1.2 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 the <min>\.\.\.<max> syntax
|
|
to tell CMake that the project requires at least <min> but has been updated
|
|
to work with policies introduced by <max> or earlier\.
|
|
+
|
|
CMake Deprecation Warning at SourceProperty-CMP0070-OLD.cmake:[0-9]+ \(cmake_policy\):
|
|
The OLD behavior for policy CMP0070 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 Error at SourceProperty-CMP0070-OLD.cmake:[0-9]+ \(target_sources\):
|
|
Cannot find source file:
|
|
|
|
.*\/relative-output-OLD\.c
|
|
|
|
Tried extensions ([^
|
|
]+
|
|
)+Call Stack \(most recent call first\):
|
|
CMakeLists.txt:[0-9]+ \(include\)
|
|
+
|
|
CMake Generate step failed. Build files cannot be regenerated correctly.$
|