diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2023-08-16 13:17:09 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2023-08-16 13:47:29 (GMT) |
commit | 2588bf090ce822de44a470362019c398b2165137 (patch) | |
tree | ba0352290c092787bf98fead02b98f00e942c956 /Source/cmCMakePresetsGraphReadJSONPackagePresets.cxx | |
parent | e70749e0d65f2bad841de92d3952b9297f326a34 (diff) | |
download | CMake-2588bf090ce822de44a470362019c398b2165137.zip CMake-2588bf090ce822de44a470362019c398b2165137.tar.gz CMake-2588bf090ce822de44a470362019c398b2165137.tar.bz2 |
CMakePresets: Make error generators proper functions
And rename cmCMakePresetErrors to cmCMakePresetsErrors.
Diffstat (limited to 'Source/cmCMakePresetsGraphReadJSONPackagePresets.cxx')
-rw-r--r-- | Source/cmCMakePresetsGraphReadJSONPackagePresets.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmCMakePresetsGraphReadJSONPackagePresets.cxx b/Source/cmCMakePresetsGraphReadJSONPackagePresets.cxx index bbd77ba..ac49c62 100644 --- a/Source/cmCMakePresetsGraphReadJSONPackagePresets.cxx +++ b/Source/cmCMakePresetsGraphReadJSONPackagePresets.cxx @@ -11,7 +11,7 @@ #include <cm3p/json/value.h> -#include "cmCMakePresetErrors.h" +#include "cmCMakePresetsErrors.h" #include "cmCMakePresetsGraph.h" #include "cmCMakePresetsGraphInternal.h" #include "cmJSONHelpers.h" @@ -29,14 +29,14 @@ auto const OutputHelper = cmCMakePresetsGraphInternal::PresetOptionalBoolHelper, false); auto const VariableHelper = - cmJSONHelperBuilder::String(cmCMakePresetErrors::INVALID_VARIABLE); + cmJSONHelperBuilder::String(cmCMakePresetsErrors::INVALID_VARIABLE); auto const VariablesHelper = cmJSONHelperBuilder::Map<std::string>( - cmCMakePresetErrors::INVALID_VARIABLE, VariableHelper); + cmCMakePresetsErrors::INVALID_VARIABLE, VariableHelper); auto const PackagePresetHelper = cmJSONHelperBuilder::Object<PackagePreset>( - cmCMakePresetErrors::INVALID_PRESET_OBJECT, false) + cmCMakePresetsErrors::INVALID_PRESET_OBJECT, false) .Bind("name"_s, &PackagePreset::Name, cmCMakePresetsGraphInternal::PresetNameHelper) .Bind("inherits"_s, &PackagePreset::Inherits, @@ -46,7 +46,7 @@ auto const PackagePresetHelper = cmCMakePresetsGraphInternal::PresetBoolHelper, false) .Bind<std::nullptr_t>("vendor"_s, nullptr, cmCMakePresetsGraphInternal::VendorHelper( - cmCMakePresetErrors::INVALID_PRESET), + cmCMakePresetsErrors::INVALID_PRESET), false) .Bind("displayName"_s, &PackagePreset::DisplayName, cmCMakePresetsGraphInternal::PresetStringHelper, false) @@ -84,7 +84,7 @@ bool PackagePresetsHelper(std::vector<cmCMakePresetsGraph::PackagePreset>& out, const Json::Value* value, cmJSONState* state) { static auto const helper = cmJSONHelperBuilder::Vector<PackagePreset>( - cmCMakePresetErrors::INVALID_PRESETS, PackagePresetHelper); + cmCMakePresetsErrors::INVALID_PRESETS, PackagePresetHelper); return helper(out, value, state); } |