diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2022-09-13 14:42:11 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2022-09-13 14:42:11 (GMT) |
commit | 3546657cc772ea4e8ce8d5240a447623fe2bf48a (patch) | |
tree | 54a3966b2fd345a2a0b94517b5c4aeceecc4a3c8 | |
parent | 9ffd170d2702e08b7a1c0259ac349d1edcbd9ad4 (diff) | |
download | CMake-3546657cc772ea4e8ce8d5240a447623fe2bf48a.zip CMake-3546657cc772ea4e8ce8d5240a447623fe2bf48a.tar.gz CMake-3546657cc772ea4e8ce8d5240a447623fe2bf48a.tar.bz2 |
CMakePresets.json: Fix error message for unsupported package presets
-rw-r--r-- | Source/cmCMakePresetsGraph.cxx | 2 | ||||
-rw-r--r-- | Tests/RunCMake/CMakePresetsPackage/UnsupportedVersion-configure-x-stderr.txt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmCMakePresetsGraph.cxx b/Source/cmCMakePresetsGraph.cxx index c168a45..5b216bb 100644 --- a/Source/cmCMakePresetsGraph.cxx +++ b/Source/cmCMakePresetsGraph.cxx @@ -1115,7 +1115,7 @@ const char* cmCMakePresetsGraph::ResultToString(ReadFileResult result) return "File version must be 2 or higher for build and test preset " "support."; case ReadFileResult::PACKAGE_PRESETS_UNSUPPORTED: - return "File version must be 5 or higher for package preset support"; + return "File version must be 6 or higher for package preset support"; case ReadFileResult::INCLUDE_UNSUPPORTED: return "File version must be 4 or higher for include support"; case ReadFileResult::INVALID_INCLUDE: diff --git a/Tests/RunCMake/CMakePresetsPackage/UnsupportedVersion-configure-x-stderr.txt b/Tests/RunCMake/CMakePresetsPackage/UnsupportedVersion-configure-x-stderr.txt index 325af70..4c461e3 100644 --- a/Tests/RunCMake/CMakePresetsPackage/UnsupportedVersion-configure-x-stderr.txt +++ b/Tests/RunCMake/CMakePresetsPackage/UnsupportedVersion-configure-x-stderr.txt @@ -1,2 +1,2 @@ ^CMake Error: Could not read presets from [^ -]*/Tests/RunCMake/CMakePresetsPackage/UnsupportedVersion: File version must be 5 or higher for package preset support$ +]*/Tests/RunCMake/CMakePresetsPackage/UnsupportedVersion: File version must be 6 or higher for package preset support$ |