diff options
author | Brad King <brad.king@kitware.com> | 2023-02-09 14:35:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-02-11 11:25:11 (GMT) |
commit | 3a4791548dfeb69e645e8fea8e669473d4f868cf (patch) | |
tree | cacff3748cdff410a5e0e6219db92f4b83535806 /Tests/RunCMake/IfacePaths/SrcInInstallPrefix-CMP0052-OLD-stderr.txt | |
parent | 1edf1385064d67885bafe09d472f82bf62d34641 (diff) | |
download | CMake-3a4791548dfeb69e645e8fea8e669473d4f868cf.zip CMake-3a4791548dfeb69e645e8fea8e669473d4f868cf.tar.gz CMake-3a4791548dfeb69e645e8fea8e669473d4f868cf.tar.bz2 |
Deprecate compatibility with CMake versions older than 3.5
Issue a deprecation warning on calls to `cmake_minimum_required` or
`cmake_policy` that set policies based on versions older than 3.5.
Note that the effective policy version includes `...<max>` treatment.
Update the check from commit 5845c218d7 (Deprecate compatibility with
CMake versions older than 2.8.12, 2020-06-12, v3.19.0-rc1~629^2).
Diffstat (limited to 'Tests/RunCMake/IfacePaths/SrcInInstallPrefix-CMP0052-OLD-stderr.txt')
-rw-r--r-- | Tests/RunCMake/IfacePaths/SrcInInstallPrefix-CMP0052-OLD-stderr.txt | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Tests/RunCMake/IfacePaths/SrcInInstallPrefix-CMP0052-OLD-stderr.txt b/Tests/RunCMake/IfacePaths/SrcInInstallPrefix-CMP0052-OLD-stderr.txt index 001bd4e..4db8209 100644 --- a/Tests/RunCMake/IfacePaths/SrcInInstallPrefix-CMP0052-OLD-stderr.txt +++ b/Tests/RunCMake/IfacePaths/SrcInInstallPrefix-CMP0052-OLD-stderr.txt @@ -1,6 +1,13 @@ -^CMake Deprecation Warning at CMakeLists.txt:[0-9]+ \(cmake_minimum_required\): +^CMake Deprecation Warning at CMakeLists\.txt:[0-9]+ \(cmake_minimum_required\): + Compatibility with CMake < 3\.5 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\. ++ +CMake Deprecation Warning at CMakeLists\.txt:[0-9]+ \(cmake_minimum_required\): The OLD behavior for policy CMP0052 will be removed from a future version - of CMake. + 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 |