From 27b3b186019234b4cda619fbfa99f2c60473e9a5 Mon Sep 17 00:00:00 2001 From: Charles Villard <charles.villard@cea.fr> Date: Tue, 3 Dec 2024 13:44:26 +0100 Subject: [PATCH] edit: fixed tests target with fmt link --- CMakeLists.txt | 2 +- unit_tests/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 61f021477..d6a86ab46 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,7 +40,7 @@ endif() ############################################## # Find system dependencies -set(FMT_VERSION 10.2.1) +set(FMT_VERSION 11.0.2) find_package(fmt ${FMT_VERSION} QUIET) diff --git a/unit_tests/CMakeLists.txt b/unit_tests/CMakeLists.txt index 2c0c746a4..8257a6063 100644 --- a/unit_tests/CMakeLists.txt +++ b/unit_tests/CMakeLists.txt @@ -63,6 +63,7 @@ endif() target_link_libraries(tests${module_name} PRIVATE ${module_name}) target_link_libraries(tests${module_name} PRIVATE Catch2::Catch2WithMain) +target_link_libraries(tests${module_name} PRIVATE fmt::fmt) list(APPEND CMAKE_MODULE_PATH ${catch2_SOURCE_DIR}/extras) include(CTest) -- GitLab