From 601d546b8452159c38d65231d52f0dbd05e793d2 Mon Sep 17 00:00:00 2001 From: Michael Thies Date: Sun, 27 Aug 2023 18:58:03 +0200 Subject: Add explicit fmt::formatter for nlohmann::basic_json The formatter is based on fmt's ostream_formatter, using the provided operator<<(std::ostream&) of nlohmann::basic_json. This is required to allow compilation against fmt 10.x Co-authored-by: Oliver Reiche --- src/utils/cpp/TARGETS | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/utils/cpp/TARGETS') diff --git a/src/utils/cpp/TARGETS b/src/utils/cpp/TARGETS index 73c5e462..7c05472f 100644 --- a/src/utils/cpp/TARGETS +++ b/src/utils/cpp/TARGETS @@ -16,7 +16,12 @@ { "type": ["@", "rules", "CC", "library"] , "name": ["json"] , "hdrs": ["json.hpp"] - , "deps": ["gsl", ["@", "json", "", "json"], ["@", "gsl", "", "gsl"]] + , "deps": + [ "gsl" + , ["@", "json", "", "json"] + , ["@", "gsl", "", "gsl"] + , ["@", "fmt", "", "fmt"] + ] , "stage": ["src", "utils", "cpp"] } , "concepts": -- cgit v1.2.3