From: Kefu Chai Date: Sun, 30 Mar 2025 01:39:53 +0000 (+0800) Subject: cmake: Allow building with fmt <= 11.1.4 X-Git-Tag: v20.3.0~217^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d123ed4f11dd4317123d054dd036c3633f01d839;p=ceph.git 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 --- 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.")