diff --git a/CMakeLists.txt b/CMakeLists.txt index 61f02147722086c32a0cc24d3b6492cacce68ad4..d04627d6deec9a0ca49a6ac7e165519fe36f90fc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,6 +52,7 @@ if(NOT fmt_FOUND) fmt GIT_REPOSITORY https://github.com/fmtlib/fmt.git GIT_TAG ${FMT_VERSION} + OVERRIDE_FIND_PACKAGE ) set(FMT_SYSTEM_HEADERS ON) diff --git a/unit_tests/CMakeLists.txt b/unit_tests/CMakeLists.txt index 2c0c746a412643c568ff07d8c50b5f5d8cbf72d5..8257a60633b5a4aef2c565a22a3606acab2803d8 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)