diff options
author | Brad King <brad.king@kitware.com> | 2024-11-14 14:26:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-11-14 14:40:01 (GMT) |
commit | 4c4f173876a5261b228c90210ddb3e5f47f4454b (patch) | |
tree | 9a89a8f3a5c2e8b60e4201312e2d22662cac2f4d /Tests | |
parent | 6a2590498388a65e211cb81e4b0cea705d7373bf (diff) | |
download | CMake-4c4f173876a5261b228c90210ddb3e5f47f4454b.zip CMake-4c4f173876a5261b228c90210ddb3e5f47f4454b.tar.gz CMake-4c4f173876a5261b228c90210ddb3e5f47f4454b.tar.bz2 |
Clarify advice given by compatibility deprecation message for CMake < 3.10
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.
Diffstat (limited to 'Tests')
28 files changed, 90 insertions, 60 deletions
diff --git a/Tests/RunCMake/File_Generate/CMP0070-OLD-stderr.txt b/Tests/RunCMake/File_Generate/CMP0070-OLD-stderr.txt index 185fa5d..ec215fb 100644 --- a/Tests/RunCMake/File_Generate/CMP0070-OLD-stderr.txt +++ b/Tests/RunCMake/File_Generate/CMP0070-OLD-stderr.txt @@ -2,8 +2,9 @@ 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\. + 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 CMP0070-OLD.cmake:[0-9]+ \(cmake_policy\): The OLD behavior for policy CMP0070 will be removed from a future version diff --git a/Tests/RunCMake/File_Generate/CMP0070-WARN-stderr.txt b/Tests/RunCMake/File_Generate/CMP0070-WARN-stderr.txt index 5f8144a..2974836 100644 --- a/Tests/RunCMake/File_Generate/CMP0070-WARN-stderr.txt +++ b/Tests/RunCMake/File_Generate/CMP0070-WARN-stderr.txt @@ -2,8 +2,9 @@ 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\. + 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 Warning \(dev\) in CMakeLists.txt: Policy CMP0070 is not set: Define file\(GENERATE\) behavior for relative diff --git a/Tests/RunCMake/File_Generate/SourceProperty-CMP0070-OLD-stderr.txt b/Tests/RunCMake/File_Generate/SourceProperty-CMP0070-OLD-stderr.txt index 37cc35e..8479869 100644 --- a/Tests/RunCMake/File_Generate/SourceProperty-CMP0070-OLD-stderr.txt +++ b/Tests/RunCMake/File_Generate/SourceProperty-CMP0070-OLD-stderr.txt @@ -2,8 +2,9 @@ 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\. + 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 diff --git a/Tests/RunCMake/GenEx-TARGET_PROPERTY/LOCATION-stderr.txt b/Tests/RunCMake/GenEx-TARGET_PROPERTY/LOCATION-stderr.txt index 79bc554..468d2c5 100644 --- a/Tests/RunCMake/GenEx-TARGET_PROPERTY/LOCATION-stderr.txt +++ b/Tests/RunCMake/GenEx-TARGET_PROPERTY/LOCATION-stderr.txt @@ -2,8 +2,9 @@ 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\. + 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 Warning \(dev\) in CMakeLists\.txt: Policy CMP0026 is not set: Disallow use of the LOCATION target property. diff --git a/Tests/RunCMake/IfacePaths/BinInInstallPrefix-CMP0052-OLD-stderr.txt b/Tests/RunCMake/IfacePaths/BinInInstallPrefix-CMP0052-OLD-stderr.txt index 48e8a01..a08f80f 100644 --- a/Tests/RunCMake/IfacePaths/BinInInstallPrefix-CMP0052-OLD-stderr.txt +++ b/Tests/RunCMake/IfacePaths/BinInInstallPrefix-CMP0052-OLD-stderr.txt @@ -2,8 +2,9 @@ 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\. + 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 CMakeLists.txt:[0-9]+ \(cmake_minimum_required\): The OLD behavior for policy CMP0052 will be removed from a future version diff --git a/Tests/RunCMake/IfacePaths/SrcInInstallPrefix-CMP0052-OLD-stderr.txt b/Tests/RunCMake/IfacePaths/SrcInInstallPrefix-CMP0052-OLD-stderr.txt index 05c6991..38acbdd 100644 --- a/Tests/RunCMake/IfacePaths/SrcInInstallPrefix-CMP0052-OLD-stderr.txt +++ b/Tests/RunCMake/IfacePaths/SrcInInstallPrefix-CMP0052-OLD-stderr.txt @@ -2,8 +2,9 @@ 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\. + 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 CMakeLists\.txt:[0-9]+ \(cmake_minimum_required\): The OLD behavior for policy CMP0052 will be removed from a future version diff --git a/Tests/RunCMake/LinkItemValidation/CMP0028-OLD-iface-stderr.txt b/Tests/RunCMake/LinkItemValidation/CMP0028-OLD-iface-stderr.txt index f96567b..d756db1 100644 --- a/Tests/RunCMake/LinkItemValidation/CMP0028-OLD-iface-stderr.txt +++ b/Tests/RunCMake/LinkItemValidation/CMP0028-OLD-iface-stderr.txt @@ -2,8 +2,9 @@ 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\. + 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 CMP0028-OLD-iface\.cmake:[0-9]+ \(cmake_policy\): The OLD behavior for policy CMP0028 will be removed from a future version diff --git a/Tests/RunCMake/LinkItemValidation/CMP0028-OLD-stderr.txt b/Tests/RunCMake/LinkItemValidation/CMP0028-OLD-stderr.txt index 91a0ad7..8ebf949 100644 --- a/Tests/RunCMake/LinkItemValidation/CMP0028-OLD-stderr.txt +++ b/Tests/RunCMake/LinkItemValidation/CMP0028-OLD-stderr.txt @@ -2,8 +2,9 @@ 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\. + 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 CMP0028-OLD\.cmake:[0-9]+ \(cmake_policy\): The OLD behavior for policy CMP0028 will be removed from a future version diff --git a/Tests/RunCMake/Ninja/CMP0058-OLD-by-stderr.txt b/Tests/RunCMake/Ninja/CMP0058-OLD-by-stderr.txt index 1daf114..4cf1f19 100644 --- a/Tests/RunCMake/Ninja/CMP0058-OLD-by-stderr.txt +++ b/Tests/RunCMake/Ninja/CMP0058-OLD-by-stderr.txt @@ -2,8 +2,9 @@ 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\. + 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\. Call Stack \(most recent call first\): CMakeLists.txt:[0-9] \(include\) + diff --git a/Tests/RunCMake/Ninja/CMP0058-OLD-no-stderr.txt b/Tests/RunCMake/Ninja/CMP0058-OLD-no-stderr.txt index bc864be..6a9bc62 100644 --- a/Tests/RunCMake/Ninja/CMP0058-OLD-no-stderr.txt +++ b/Tests/RunCMake/Ninja/CMP0058-OLD-no-stderr.txt @@ -2,8 +2,9 @@ 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\. + 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\. Call Stack \(most recent call first\): CMakeLists.txt:[0-9] \(include\) + diff --git a/Tests/RunCMake/Ninja/CMP0058-WARN-by-stderr.txt b/Tests/RunCMake/Ninja/CMP0058-WARN-by-stderr.txt index ecf4616..5abfda7 100644 --- a/Tests/RunCMake/Ninja/CMP0058-WARN-by-stderr.txt +++ b/Tests/RunCMake/Ninja/CMP0058-WARN-by-stderr.txt @@ -2,7 +2,8 @@ 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\. + 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\. Call Stack \(most recent call first\): CMakeLists.txt:[0-9] \(include\)$ diff --git a/Tests/RunCMake/Ninja/CMP0058-WARN-no-stderr.txt b/Tests/RunCMake/Ninja/CMP0058-WARN-no-stderr.txt index b5d5b0b..70d9451 100644 --- a/Tests/RunCMake/Ninja/CMP0058-WARN-no-stderr.txt +++ b/Tests/RunCMake/Ninja/CMP0058-WARN-no-stderr.txt @@ -2,8 +2,9 @@ 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\. + 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\. Call Stack \(most recent call first\): CMakeLists.txt:[0-9] \(include\) + diff --git a/Tests/RunCMake/RunCMake.cmake b/Tests/RunCMake/RunCMake.cmake index bf124dd..6251ca0 100644 --- a/Tests/RunCMake/RunCMake.cmake +++ b/Tests/RunCMake/RunCMake.cmake @@ -227,8 +227,9 @@ function(run_cmake test) 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\. + 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\. + ]] "" actual_stderr "${actual_stderr}") endif() diff --git a/Tests/RunCMake/VisibilityPreset/CMP0063-OLD-stderr.txt b/Tests/RunCMake/VisibilityPreset/CMP0063-OLD-stderr.txt index 2c04fa0..7837d23 100644 --- a/Tests/RunCMake/VisibilityPreset/CMP0063-OLD-stderr.txt +++ b/Tests/RunCMake/VisibilityPreset/CMP0063-OLD-stderr.txt @@ -2,8 +2,9 @@ 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\. + 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 CMP0063-OLD.cmake:[0-9]+ \(cmake_policy\): The OLD behavior for policy CMP0063 will be removed from a future version diff --git a/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-exe-stderr.txt b/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-exe-stderr.txt index a8e610e..dc45d50 100644 --- a/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-exe-stderr.txt +++ b/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-exe-stderr.txt @@ -2,8 +2,9 @@ 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\. + 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 Warning \(dev\) at CMP0063-WARN-exe.cmake:[0-9]+ \(add_executable\): Policy CMP0063 is not set: Honor visibility properties for all target diff --git a/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-no-stderr.txt b/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-no-stderr.txt index 6f8719e..c59fe7b 100644 --- a/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-no-stderr.txt +++ b/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-no-stderr.txt @@ -2,5 +2,6 @@ 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\.$ + 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\.$ diff --git a/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-obj-stderr.txt b/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-obj-stderr.txt index 150eebb..96bd792 100644 --- a/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-obj-stderr.txt +++ b/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-obj-stderr.txt @@ -2,8 +2,9 @@ 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\. + 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 Warning \(dev\) at CMP0063-WARN-obj.cmake:[0-9]+ \(add_library\): Policy CMP0063 is not set: Honor visibility properties for all target diff --git a/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-sta-stderr.txt b/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-sta-stderr.txt index 3ea8864..b945e30 100644 --- a/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-sta-stderr.txt +++ b/Tests/RunCMake/VisibilityPreset/CMP0063-WARN-sta-stderr.txt @@ -2,8 +2,9 @@ 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\. + 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 Warning \(dev\) at CMP0063-WARN-sta.cmake:[0-9]+ \(add_library\): Policy CMP0063 is not set: Honor visibility properties for all target diff --git a/Tests/RunCMake/cmake_minimum_required/Before3_10-stderr.txt b/Tests/RunCMake/cmake_minimum_required/Before3_10-stderr.txt index 5709684..4a6842b 100644 --- a/Tests/RunCMake/cmake_minimum_required/Before3_10-stderr.txt +++ b/Tests/RunCMake/cmake_minimum_required/Before3_10-stderr.txt @@ -2,8 +2,9 @@ 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\. + 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\. Call Stack \(most recent call first\): CMakeLists.txt:3 \(include\) + @@ -11,8 +12,9 @@ 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 - CMake that the project does not need compatibility with older versions\. + 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\. Call Stack \(most recent call first\): CMakeLists.txt:3 \(include\) + @@ -20,7 +22,8 @@ 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 - CMake that the project does not need compatibility with older versions\. + 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\. Call Stack \(most recent call first\): CMakeLists.txt:3 \(include\)$ diff --git a/Tests/RunCMake/cmake_minimum_required/CompatBefore24-stderr.txt b/Tests/RunCMake/cmake_minimum_required/CompatBefore24-stderr.txt index 816cdac..1363d09 100644 --- a/Tests/RunCMake/cmake_minimum_required/CompatBefore24-stderr.txt +++ b/Tests/RunCMake/cmake_minimum_required/CompatBefore24-stderr.txt @@ -2,8 +2,9 @@ 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\. + 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\. Call Stack \(most recent call first\): CMakeLists.txt:3 \(include\) + diff --git a/Tests/RunCMake/ctest_build/BuildFailure-CMP0061-OLD-stderr.txt b/Tests/RunCMake/ctest_build/BuildFailure-CMP0061-OLD-stderr.txt index 9a62174..18710a3 100644 --- a/Tests/RunCMake/ctest_build/BuildFailure-CMP0061-OLD-stderr.txt +++ b/Tests/RunCMake/ctest_build/BuildFailure-CMP0061-OLD-stderr.txt @@ -3,7 +3,8 @@ 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\. + 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\. +(Error\(s\) when building project )?ctest_build returned zero$ diff --git a/Tests/RunCMake/include/CMP0024-WARN-stderr.txt b/Tests/RunCMake/include/CMP0024-WARN-stderr.txt index 6cf4a7b..5e9f1d7 100644 --- a/Tests/RunCMake/include/CMP0024-WARN-stderr.txt +++ b/Tests/RunCMake/include/CMP0024-WARN-stderr.txt @@ -2,8 +2,9 @@ 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\. + 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\. Call Stack \(most recent call first\): CMakeLists\.txt:[0-9]+ \(include\) + diff --git a/Tests/RunCMake/install/CMP0062-OLD-stderr.txt b/Tests/RunCMake/install/CMP0062-OLD-stderr.txt index 8eeef65..0a2981e 100644 --- a/Tests/RunCMake/install/CMP0062-OLD-stderr.txt +++ b/Tests/RunCMake/install/CMP0062-OLD-stderr.txt @@ -2,8 +2,9 @@ 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\. + 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\. Call Stack \(most recent call first\): CMakeLists.txt:[0-9]+ \(include\) + diff --git a/Tests/RunCMake/list/GET-CMP0007-WARN-stderr.txt b/Tests/RunCMake/list/GET-CMP0007-WARN-stderr.txt index 7453290..4f376d8 100644 --- a/Tests/RunCMake/list/GET-CMP0007-WARN-stderr.txt +++ b/Tests/RunCMake/list/GET-CMP0007-WARN-stderr.txt @@ -2,8 +2,9 @@ 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\. + 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\. Call Stack \(most recent call first\): CMakeLists.txt:3 \(include\) + diff --git a/Tests/RunCMake/project/CMP0048-NEW-stderr.txt b/Tests/RunCMake/project/CMP0048-NEW-stderr.txt index dde1afc..b6c6b1f 100644 --- a/Tests/RunCMake/project/CMP0048-NEW-stderr.txt +++ b/Tests/RunCMake/project/CMP0048-NEW-stderr.txt @@ -2,5 +2,6 @@ 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\.$ + 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\.$ diff --git a/Tests/RunCMake/project/CMP0048-OLD-stderr.txt b/Tests/RunCMake/project/CMP0048-OLD-stderr.txt index 1fb207f..51e43f0 100644 --- a/Tests/RunCMake/project/CMP0048-OLD-stderr.txt +++ b/Tests/RunCMake/project/CMP0048-OLD-stderr.txt @@ -2,8 +2,9 @@ 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\. + 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 CMP0048-OLD\.cmake:1 \(cmake_policy\): The OLD behavior for policy CMP0048 will be removed from a future version diff --git a/Tests/RunCMake/project_injected/CMP0048-WARN-stderr.txt b/Tests/RunCMake/project_injected/CMP0048-WARN-stderr.txt index cb5d874..38ec91f 100644 --- a/Tests/RunCMake/project_injected/CMP0048-WARN-stderr.txt +++ b/Tests/RunCMake/project_injected/CMP0048-WARN-stderr.txt @@ -15,5 +15,6 @@ CMake Deprecation Warning at CMakeLists\.txt: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 - CMake that the project does not need compatibility with older versions\.$ + 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\.$ diff --git a/Tests/RunCMake/try_compile/CMP0066-stderr.txt b/Tests/RunCMake/try_compile/CMP0066-stderr.txt index 0b621f0..ef1e531 100644 --- a/Tests/RunCMake/try_compile/CMP0066-stderr.txt +++ b/Tests/RunCMake/try_compile/CMP0066-stderr.txt @@ -2,8 +2,9 @@ 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\. + 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\. + before try_compile with CMP0066 WARN-default after try_compile with CMP0066 WARN-default |