From 266ace44a26008804c89bce7f84c0143f061d163 Mon Sep 17 00:00:00 2001 From: vhinger Date: Fri, 8 Nov 2024 16:35:04 +0100 Subject: [PATCH] Include fmt a CMake dependency --- .../jungfrauExecutables/CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/slsDetectorCalibration/jungfrauExecutables/CMakeLists.txt b/slsDetectorCalibration/jungfrauExecutables/CMakeLists.txt index 53afc4df6..a79a38017 100644 --- a/slsDetectorCalibration/jungfrauExecutables/CMakeLists.txt +++ b/slsDetectorCalibration/jungfrauExecutables/CMakeLists.txt @@ -6,7 +6,7 @@ set(JUNGFRAU_EXECUTABLES) -find_package(fmt REQUIRED) +#find_package(fmt REQUIRED) #nlohmann_json #If the library was INSTALLED (i.e. sudo dnf install nlohmann-json3-dev), do stuff described in the repo under CMake -> External @@ -32,6 +32,13 @@ FetchContent_Declare( #FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz) #Alternative (from the repo documentation) FetchContent_MakeAvailable(json) +FetchContent_Declare( + fmt + GIT_REPOSITORY https://github.com/fmtlib/fmt.git + GIT_TAG master +) +FetchContent_MakeAvailable(fmt) + # HDF5 file writing if (SLS_USE_HDF5) find_package(HDF5 1.10 COMPONENTS CXX REQUIRED)