From: Abhishek Lekshmanan Date: Wed, 26 Jul 2023 08:24:34 +0000 (+0200) Subject: cmake: ensure fmt lib is atleast 8.1.1 X-Git-Tag: v18.2.1~385^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=b34a36be0654d96fb8c585b8f4b8349b0853768a;p=ceph-ci.git cmake: ensure fmt lib is atleast 8.1.1 Since we depend on newer api features like `group_digits` ensure that the system version of fmt we use is at least as new as the submodules we bring. Signed-off-by: Abhishek Lekshmanan (cherry picked from commit eead42d4b1ec1bc1d7d2267b3ce97b8f34a7fb9b) --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0a841c5db37..e1f90f72b2d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -321,7 +321,7 @@ if(NOT TARGET RapidJSON::RapidJSON) endif() option(WITH_FMT_HEADER_ONLY "use header-only version of fmt library" OFF) -set(WITH_FMT_VERSION "7.0.0" CACHE +set(WITH_FMT_VERSION "8.1.1" CACHE STRING "build with fmt version") find_package(fmt ${WITH_FMT_VERSION} QUIET) if(fmt_FOUND)