diff options
author | Brad King <brad.king@kitware.com> | 2024-10-03 15:16:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-10-03 18:18:26 (GMT) |
commit | 84db8506ffc38381dd2502be41879ffe03d8e8e9 (patch) | |
tree | 5320985b175509d1070ddfa0c64973cf821d29b9 /Tests | |
parent | 9e3b559b6a30b8b5734849fc21a9cea1b0e2874f (diff) | |
download | CMake-84db8506ffc38381dd2502be41879ffe03d8e8e9.zip CMake-84db8506ffc38381dd2502be41879ffe03d8e8e9.tar.gz CMake-84db8506ffc38381dd2502be41879ffe03d8e8e9.tar.bz2 |
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).
Diffstat (limited to 'Tests')
32 files changed, 65 insertions, 35 deletions
diff --git a/Tests/RunCMake/CMP0068/RunCMakeTest.cmake b/Tests/RunCMake/CMP0068/RunCMakeTest.cmake index 88a6225..49734ca 100644 --- a/Tests/RunCMake/CMP0068/RunCMakeTest.cmake +++ b/Tests/RunCMake/CMP0068/RunCMakeTest.cmake @@ -1,4 +1,5 @@ include(RunCMake) +set(RunCMake_IGNORE_POLICY_VERSION_DEPRECATION ON) run_cmake(CMP0068-OLD) run_cmake(CMP0068-NEW) diff --git a/Tests/RunCMake/CMP0069/RunCMakeTest.cmake b/Tests/RunCMake/CMP0069/RunCMakeTest.cmake index 6128325..12d20ca 100644 --- a/Tests/RunCMake/CMP0069/RunCMakeTest.cmake +++ b/Tests/RunCMake/CMP0069/RunCMakeTest.cmake @@ -1,4 +1,5 @@ include(RunCMake) +set(RunCMake_IGNORE_POLICY_VERSION_DEPRECATION ON) run_cmake(CMP0069-OLD) run_cmake(CMP0069-NEW-cmake) diff --git a/Tests/RunCMake/File_Generate/CMP0070-OLD-stderr.txt b/Tests/RunCMake/File_Generate/CMP0070-OLD-stderr.txt index bb578e5..185fa5d 100644 --- a/Tests/RunCMake/File_Generate/CMP0070-OLD-stderr.txt +++ b/Tests/RunCMake/File_Generate/CMP0070-OLD-stderr.txt @@ -1,4 +1,11 @@ -^CMake Deprecation Warning at CMP0070-OLD.cmake:[0-9]+ \(cmake_policy\): +^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\. ++ +CMake Deprecation Warning at CMP0070-OLD.cmake:[0-9]+ \(cmake_policy\): The OLD behavior for policy CMP0070 will be removed from a future version of CMake. diff --git a/Tests/RunCMake/File_Generate/CMP0070-WARN-stderr.txt b/Tests/RunCMake/File_Generate/CMP0070-WARN-stderr.txt index a7a231b..5f8144a 100644 --- a/Tests/RunCMake/File_Generate/CMP0070-WARN-stderr.txt +++ b/Tests/RunCMake/File_Generate/CMP0070-WARN-stderr.txt @@ -1,4 +1,11 @@ -^(CMake Warning \(dev\) in CMakeLists.txt: +^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\. ++ +(CMake Warning \(dev\) in CMakeLists.txt: Policy CMP0070 is not set: Define file\(GENERATE\) behavior for relative paths. Run "cmake --help-policy CMP0070" for policy details. Use the cmake_policy command to set the policy and suppress this warning. diff --git a/Tests/RunCMake/File_Generate/SourceProperty-CMP0070-OLD-stderr.txt b/Tests/RunCMake/File_Generate/SourceProperty-CMP0070-OLD-stderr.txt index 39735d7..37cc35e 100644 --- a/Tests/RunCMake/File_Generate/SourceProperty-CMP0070-OLD-stderr.txt +++ b/Tests/RunCMake/File_Generate/SourceProperty-CMP0070-OLD-stderr.txt @@ -1,4 +1,11 @@ -^CMake Deprecation Warning at SourceProperty-CMP0070-OLD.cmake:[0-9]+ \(cmake_policy\): +^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\. ++ +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. diff --git a/Tests/RunCMake/GenEx-TARGET_PROPERTY/LOCATION-stderr.txt b/Tests/RunCMake/GenEx-TARGET_PROPERTY/LOCATION-stderr.txt index fab2ce2..79bc554 100644 --- a/Tests/RunCMake/GenEx-TARGET_PROPERTY/LOCATION-stderr.txt +++ b/Tests/RunCMake/GenEx-TARGET_PROPERTY/LOCATION-stderr.txt @@ -1,5 +1,5 @@ ^CMake Deprecation Warning at CMakeLists\.txt:3 \(cmake_minimum_required\): - Compatibility with CMake < 3\.5 will be removed from a future version of + 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 diff --git a/Tests/RunCMake/IfacePaths/BinInInstallPrefix-CMP0052-OLD-stderr.txt b/Tests/RunCMake/IfacePaths/BinInInstallPrefix-CMP0052-OLD-stderr.txt index d0aef2c..48e8a01 100644 --- a/Tests/RunCMake/IfacePaths/BinInInstallPrefix-CMP0052-OLD-stderr.txt +++ b/Tests/RunCMake/IfacePaths/BinInInstallPrefix-CMP0052-OLD-stderr.txt @@ -1,5 +1,5 @@ ^CMake Deprecation Warning at CMakeLists\.txt:[0-9]+ \(cmake_minimum_required\): - Compatibility with CMake < 3\.5 will be removed from a future version of + 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 diff --git a/Tests/RunCMake/IfacePaths/SrcInInstallPrefix-CMP0052-OLD-stderr.txt b/Tests/RunCMake/IfacePaths/SrcInInstallPrefix-CMP0052-OLD-stderr.txt index 4db8209..05c6991 100644 --- a/Tests/RunCMake/IfacePaths/SrcInInstallPrefix-CMP0052-OLD-stderr.txt +++ b/Tests/RunCMake/IfacePaths/SrcInInstallPrefix-CMP0052-OLD-stderr.txt @@ -1,5 +1,5 @@ ^CMake Deprecation Warning at CMakeLists\.txt:[0-9]+ \(cmake_minimum_required\): - Compatibility with CMake < 3\.5 will be removed from a future version of + 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 diff --git a/Tests/RunCMake/LinkItemValidation/CMP0028-OLD-iface-stderr.txt b/Tests/RunCMake/LinkItemValidation/CMP0028-OLD-iface-stderr.txt index 55aa1bb..f96567b 100644 --- a/Tests/RunCMake/LinkItemValidation/CMP0028-OLD-iface-stderr.txt +++ b/Tests/RunCMake/LinkItemValidation/CMP0028-OLD-iface-stderr.txt @@ -1,5 +1,5 @@ ^CMake Deprecation Warning at CMakeLists\.txt:3 \(cmake_minimum_required\): - Compatibility with CMake < 3\.5 will be removed from a future version of + 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 diff --git a/Tests/RunCMake/LinkItemValidation/CMP0028-OLD-stderr.txt b/Tests/RunCMake/LinkItemValidation/CMP0028-OLD-stderr.txt index f11d8f5..91a0ad7 100644 --- a/Tests/RunCMake/LinkItemValidation/CMP0028-OLD-stderr.txt +++ b/Tests/RunCMake/LinkItemValidation/CMP0028-OLD-stderr.txt @@ -1,5 +1,5 @@ ^CMake Deprecation Warning at CMakeLists\.txt:3 \(cmake_minimum_required\): - Compatibility with CMake < 3\.5 will be removed from a future version of + 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 diff --git a/Tests/RunCMake/Ninja/CMP0058-OLD-by-stderr.txt b/Tests/RunCMake/Ninja/CMP0058-OLD-by-stderr.txt index 6d340b0..1daf114 100644 --- a/Tests/RunCMake/Ninja/CMP0058-OLD-by-stderr.txt +++ b/Tests/RunCMake/Ninja/CMP0058-OLD-by-stderr.txt @@ -1,5 +1,5 @@ ^CMake Deprecation Warning at CMP0058-OLD-by\.cmake:[0-9] \(cmake_policy\): - Compatibility with CMake < 3\.5 will be removed from a future version of + 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 diff --git a/Tests/RunCMake/Ninja/CMP0058-OLD-no-stderr.txt b/Tests/RunCMake/Ninja/CMP0058-OLD-no-stderr.txt index 834c781..bc864be 100644 --- a/Tests/RunCMake/Ninja/CMP0058-OLD-no-stderr.txt +++ b/Tests/RunCMake/Ninja/CMP0058-OLD-no-stderr.txt @@ -1,5 +1,5 @@ ^CMake Deprecation Warning at CMP0058-OLD-no\.cmake:[0-9] \(cmake_policy\): - Compatibility with CMake < 3\.5 will be removed from a future version of + 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 diff --git a/Tests/RunCMake/Ninja/CMP0058-WARN-by-stderr.txt b/Tests/RunCMake/Ninja/CMP0058-WARN-by-stderr.txt index 2927f52..ecf4616 100644 --- a/Tests/RunCMake/Ninja/CMP0058-WARN-by-stderr.txt +++ b/Tests/RunCMake/Ninja/CMP0058-WARN-by-stderr.txt @@ -1,5 +1,5 @@ ^CMake Deprecation Warning at CMP0058-WARN-by\.cmake:[0-9] \(cmake_policy\): - Compatibility with CMake < 3\.5 will be removed from a future version of + 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 diff --git a/Tests/RunCMake/Ninja/CMP0058-WARN-no-stderr.txt b/Tests/RunCMake/Ninja/CMP0058-WARN-no-stderr.txt index 1ffb416..b5d5b0b 100644 --- a/Tests/RunCMake/Ninja/CMP0058-WARN-no-stderr.txt +++ b/Tests/RunCMake/Ninja/CMP0058-WARN-no-stderr.txt @@ -1,5 +1,5 @@ ^CMake Deprecation Warning at CMP0058-WARN-no\.cmake:[0-9] \(cmake_policy\): - Compatibility with CMake < 3\.5 will be removed from a future version of + 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 diff --git a/Tests/RunCMake/RunCMake.cmake b/Tests/RunCMake/RunCMake.cmake index ea3099f..bf124dd 100644 --- a/Tests/RunCMake/RunCMake.cmake +++ b/Tests/RunCMake/RunCMake.cmake @@ -224,7 +224,7 @@ function(run_cmake test) string(REGEX REPLACE [[ ^CMake Deprecation Warning at [^ ]*CMakeLists.txt:1 \(cmake_minimum_required\): - Compatibility with CMake < 3\.5 will be removed from a future version of + 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 diff --git a/Tests/RunCMake/VisibilityPreset/CMP0063-OLD-stderr.txt b/Tests/RunCMake/VisibilityPreset/CMP0063-OLD-stderr.txt index c1c148d..2c04fa0 100644 --- a/Tests/RunCMake/VisibilityPreset/CMP0063-OLD-stderr.txt +++ b/Tests/RunCMake/VisibilityPreset/CMP0063-OLD-stderr.txt @@ -1,5 +1,5 @@ ^CMake Deprecation Warning at CMakeLists.txt:[0-9]+ \(cmake_policy\): - Compatibility with CMake < 3\.5 will be removed from a future version of + 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 diff --git a/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-exe-stderr.txt b/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-exe-stderr.txt index e937b3b..a8e610e 100644 --- a/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-exe-stderr.txt +++ b/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-exe-stderr.txt @@ -1,5 +1,5 @@ ^CMake Deprecation Warning at CMakeLists.txt:[0-9]+ \(cmake_policy\): - Compatibility with CMake < 3\.5 will be removed from a future version of + 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 diff --git a/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-no-stderr.txt b/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-no-stderr.txt index d6a435b..6f8719e 100644 --- a/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-no-stderr.txt +++ b/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-no-stderr.txt @@ -1,5 +1,5 @@ ^CMake Deprecation Warning at CMakeLists.txt:[0-9]+ \(cmake_policy\): - Compatibility with CMake < 3\.5 will be removed from a future version of + 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 diff --git a/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-obj-stderr.txt b/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-obj-stderr.txt index a9193ac..150eebb 100644 --- a/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-obj-stderr.txt +++ b/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-obj-stderr.txt @@ -1,5 +1,5 @@ ^CMake Deprecation Warning at CMakeLists.txt:[0-9]+ \(cmake_policy\): - Compatibility with CMake < 3\.5 will be removed from a future version of + 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 diff --git a/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-sta-stderr.txt b/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-sta-stderr.txt index 7b7498e..3ea8864 100644 --- a/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-sta-stderr.txt +++ b/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-sta-stderr.txt @@ -1,5 +1,5 @@ ^CMake Deprecation Warning at CMakeLists.txt:[0-9]+ \(cmake_policy\): - Compatibility with CMake < 3\.5 will be removed from a future version of + 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 diff --git a/Tests/RunCMake/cmake_minimum_required/Before3_5-stderr.txt b/Tests/RunCMake/cmake_minimum_required/Before3_10-stderr.txt index 7981235..5709684 100644 --- a/Tests/RunCMake/cmake_minimum_required/Before3_5-stderr.txt +++ b/Tests/RunCMake/cmake_minimum_required/Before3_10-stderr.txt @@ -1,5 +1,5 @@ -^CMake Deprecation Warning at Before3_5\.cmake:1 \(cmake_minimum_required\): - Compatibility with CMake < 3\.5 will be removed from a future version of +^CMake Deprecation Warning at Before3_10\.cmake:1 \(cmake_minimum_required\): + 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 @@ -7,8 +7,8 @@ Call Stack \(most recent call first\): CMakeLists.txt:3 \(include\) + -CMake Deprecation Warning at Before3_5\.cmake:2 \(cmake_policy\): - Compatibility with CMake < 3\.5 will be removed from a future version of +CMake Deprecation Warning at Before3_10\.cmake:2 \(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 @@ -16,8 +16,8 @@ CMake Deprecation Warning at Before3_5\.cmake:2 \(cmake_policy\): Call Stack \(most recent call first\): CMakeLists.txt:3 \(include\) + -CMake Deprecation Warning at Before3_5\.cmake:6 \(cmake_policy\): - Compatibility with CMake < 3\.5 will be removed from a future version of +CMake Deprecation Warning at Before3_10\.cmake:6 \(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 diff --git a/Tests/RunCMake/cmake_minimum_required/Before3_5.cmake b/Tests/RunCMake/cmake_minimum_required/Before3_10.cmake index 220e359..0b010ef 100644 --- a/Tests/RunCMake/cmake_minimum_required/Before3_5.cmake +++ b/Tests/RunCMake/cmake_minimum_required/Before3_10.cmake @@ -1,6 +1,6 @@ -cmake_minimum_required(VERSION 2.8.11) +cmake_minimum_required(VERSION 3.9) cmake_policy(VERSION 2.6) cmake_policy(PUSH) cmake_policy(VERSION 2.6) # simulate pre-3.18 install(EXPORT)-generated call cmake_policy(POP) -cmake_policy(VERSION 2.8.11) +cmake_policy(VERSION 3.9) diff --git a/Tests/RunCMake/cmake_minimum_required/CompatBefore24-stderr.txt b/Tests/RunCMake/cmake_minimum_required/CompatBefore24-stderr.txt index 3eb980a..816cdac 100644 --- a/Tests/RunCMake/cmake_minimum_required/CompatBefore24-stderr.txt +++ b/Tests/RunCMake/cmake_minimum_required/CompatBefore24-stderr.txt @@ -1,5 +1,5 @@ ^CMake Deprecation Warning at CompatBefore24\.cmake:1 \(cmake_minimum_required\): - Compatibility with CMake < 3\.5 will be removed from a future version of + 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 diff --git a/Tests/RunCMake/cmake_minimum_required/RunCMakeTest.cmake b/Tests/RunCMake/cmake_minimum_required/RunCMakeTest.cmake index 36c44cb..2851c72 100644 --- a/Tests/RunCMake/cmake_minimum_required/RunCMakeTest.cmake +++ b/Tests/RunCMake/cmake_minimum_required/RunCMakeTest.cmake @@ -4,7 +4,7 @@ run_cmake(Before24) run_cmake(CompatBefore24) run_cmake(Future) run_cmake(PolicyBefore24) -run_cmake(Before3_5) +run_cmake(Before3_10) run_cmake(Range) run_cmake(RangeBad) run_cmake(Unknown) diff --git a/Tests/RunCMake/ctest_build/BuildFailure-CMP0061-OLD-stderr.txt b/Tests/RunCMake/ctest_build/BuildFailure-CMP0061-OLD-stderr.txt index f5d57e9..9a62174 100644 --- a/Tests/RunCMake/ctest_build/BuildFailure-CMP0061-OLD-stderr.txt +++ b/Tests/RunCMake/ctest_build/BuildFailure-CMP0061-OLD-stderr.txt @@ -1,6 +1,6 @@ ^CMake Deprecation Warning at [^ ]*/Tests/RunCMake/ctest_build/BuildFailure-CMP0061-OLD/test\.cmake:[0-9]+ \(cmake_policy\): - Compatibility with CMake < 3\.5 will be removed from a future version of + 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 diff --git a/Tests/RunCMake/include/CMP0024-WARN-stderr.txt b/Tests/RunCMake/include/CMP0024-WARN-stderr.txt index 8472f41..6cf4a7b 100644 --- a/Tests/RunCMake/include/CMP0024-WARN-stderr.txt +++ b/Tests/RunCMake/include/CMP0024-WARN-stderr.txt @@ -1,5 +1,5 @@ ^CMake Deprecation Warning at CMP0024-WARN\.cmake:[0-9]+ \(cmake_policy\): - Compatibility with CMake < 3\.5 will be removed from a future version of + 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 diff --git a/Tests/RunCMake/install/CMP0062-OLD-stderr.txt b/Tests/RunCMake/install/CMP0062-OLD-stderr.txt index 6b4c4b0..8eeef65 100644 --- a/Tests/RunCMake/install/CMP0062-OLD-stderr.txt +++ b/Tests/RunCMake/install/CMP0062-OLD-stderr.txt @@ -1,5 +1,5 @@ ^CMake Deprecation Warning at CMP0062-OLD\.cmake:[0-9]+ \(cmake_policy\): - Compatibility with CMake < 3\.5 will be removed from a future version of + 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 diff --git a/Tests/RunCMake/list/GET-CMP0007-WARN-stderr.txt b/Tests/RunCMake/list/GET-CMP0007-WARN-stderr.txt index 5dd76f7..7453290 100644 --- a/Tests/RunCMake/list/GET-CMP0007-WARN-stderr.txt +++ b/Tests/RunCMake/list/GET-CMP0007-WARN-stderr.txt @@ -1,5 +1,5 @@ ^CMake Deprecation Warning at GET-CMP0007-WARN\.cmake:1 \(cmake_policy\): - Compatibility with CMake < 3\.5 will be removed from a future version of + 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 diff --git a/Tests/RunCMake/project/CMP0048-NEW-stderr.txt b/Tests/RunCMake/project/CMP0048-NEW-stderr.txt index ad75f43..dde1afc 100644 --- a/Tests/RunCMake/project/CMP0048-NEW-stderr.txt +++ b/Tests/RunCMake/project/CMP0048-NEW-stderr.txt @@ -1,5 +1,5 @@ ^CMake Deprecation Warning at CMakeLists\.txt:[0-9]+ \(cmake_minimum_required\): - Compatibility with CMake < 3\.5 will be removed from a future version of + 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 diff --git a/Tests/RunCMake/project/CMP0048-OLD-stderr.txt b/Tests/RunCMake/project/CMP0048-OLD-stderr.txt index 376249b..1fb207f 100644 --- a/Tests/RunCMake/project/CMP0048-OLD-stderr.txt +++ b/Tests/RunCMake/project/CMP0048-OLD-stderr.txt @@ -1,5 +1,5 @@ ^CMake Deprecation Warning at CMakeLists\.txt:[0-9]+ \(cmake_minimum_required\): - Compatibility with CMake < 3\.5 will be removed from a future version of + 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 diff --git a/Tests/RunCMake/project_injected/CMP0048-WARN-stderr.txt b/Tests/RunCMake/project_injected/CMP0048-WARN-stderr.txt index c72534f..cb5d874 100644 --- a/Tests/RunCMake/project_injected/CMP0048-WARN-stderr.txt +++ b/Tests/RunCMake/project_injected/CMP0048-WARN-stderr.txt @@ -12,7 +12,7 @@ This warning is for project developers. Use -Wno-dev to suppress it\. + CMake Deprecation Warning at CMakeLists\.txt:1 \(cmake_minimum_required\): - Compatibility with CMake < 3\.5 will be removed from a future version of + 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 diff --git a/Tests/RunCMake/try_compile/CMP0066-stderr.txt b/Tests/RunCMake/try_compile/CMP0066-stderr.txt index 0b92dcf..0b621f0 100644 --- a/Tests/RunCMake/try_compile/CMP0066-stderr.txt +++ b/Tests/RunCMake/try_compile/CMP0066-stderr.txt @@ -1,3 +1,10 @@ +^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 * |