]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: Allow building with fmt <= 11.1.4 62564/head
authorKefu Chai <tchaikov@gmail.com>
Sun, 30 Mar 2025 01:39:53 +0000 (09:39 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sun, 30 Mar 2025 01:43:55 +0000 (09:43 +0800)
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 <tchaikov@gmail.com>
src/CMakeLists.txt

index fe161985aede22fa876b61cea92b0af7943d5739..29aa3c51127699718cb188760b94b3ec5762fc6e 100644 (file)
@@ -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.")