diff options
author | Michael Thies <mail@mhthies.de> | 2023-08-27 18:58:03 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2023-08-28 18:34:16 +0200 |
commit | 6db13ba3f77ecf38ec1b54d6607efbb016cefce4 (patch) | |
tree | 085b73d32d02079ab8df42aa74c08eb32f97cfbf /src/utils/cpp/TARGETS | |
parent | a8fc8aaa0e4f6f1d8b928829fc19650b28815558 (diff) | |
download | justbuild-6db13ba3f77ecf38ec1b54d6607efbb016cefce4.tar.gz |
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
(cherry picked from 601d546b8452159c38d65231d52f0dbd05e793d2)
Co-authored-by: Oliver Reiche <oliver.reiche@huawei.com>
Diffstat (limited to 'src/utils/cpp/TARGETS')
-rw-r--r-- | src/utils/cpp/TARGETS | 7 |
1 files changed, 6 insertions, 1 deletions
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": |