From 40219c3df2613580e2bc5109d4c112f0eb0fb045 Mon Sep 17 00:00:00 2001 From: Martin Valgur Date: Wed, 8 Jan 2025 23:41:18 +0200 Subject: [PATCH] Limit fmt to 11.0.2 for compatibility with spdlog (#86) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit error: ‘template fmt::v11::basic_string_view spdlog::details::to_string_view’ redeclared as different kind of entity 369 | inline fmt::basic_string_view to_string_view(fmt::basic_format_string fmt) { --- conanfile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conanfile.py b/conanfile.py index a9dabb4c6..a753a6f55 100644 --- a/conanfile.py +++ b/conanfile.py @@ -48,7 +48,8 @@ def requirements(self): self.requires("nlohmann_json/[>=3.11 <3.12]", transitive_headers=True) self.requires("spdlog/[>=1.13 <2]", transitive_headers=True, transitive_libs=True, force=True) self.requires("gegles-spdlog_setup/[>=1.1 <2]", transitive_headers=True) - self.requires("fmt/[^11]", force=True) + # fmt/11.1.1 is currently not compatible with spdlog https://github.com/gabime/spdlog/issues/3302 + self.requires("fmt/11.0.2", force=True) def build_requirements(self): self.test_requires("gtest/[>=1.14 <1.15]")