From d123ed4f11dd4317123d054dd036c3633f01d839 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 30 Mar 2025 09:39:53 +0800 Subject: [PATCH] cmake: Allow building with fmt <= 11.1.4 Testing confirms successful builds with fmt 11.1.4, which is currently packaged in Fedora 42. This change relaxes the fmt version constraints to improve compatibility with Fedora 42 and other distributions shipping this version of fmt-devel. Signed-off-by: Kefu Chai --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index fe161985aede2..29aa3c5112769 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -359,7 +359,7 @@ endif() option(WITH_FMT_HEADER_ONLY "use header-only version of fmt library" OFF) option(WITH_SYSTEM_FMT "build against system fmt" OFF) if(WITH_SYSTEM_FMT) - find_package(fmt 8.1.1...<10.0.0 REQUIRED) + find_package(fmt 8.1.1...11.1.4 REQUIRED) endif() if (WITH_FMT_HEADER_ONLY) message(STATUS "Using fmt header-only.") -- 2.39.5