diff --git a/GeoLib/CMakeLists.txt b/GeoLib/CMakeLists.txt index d26bd651ee6..153810e21b4 100644 --- a/GeoLib/CMakeLists.txt +++ b/GeoLib/CMakeLists.txt @@ -17,7 +17,7 @@ target_link_libraries( PUBLIC BaseLib Eigen3::Eigen MathLib $<$:rapidxml> $<$:Qt5::Xml> $<$:Qt5::XmlPatterns> - fmt::fmt + fmt::fmt-header-only PRIVATE range-v3 tet ) diff --git a/MathLib/CMakeLists.txt b/MathLib/CMakeLists.txt index 1a98e56bdb2..d184bfca005 100644 --- a/MathLib/CMakeLists.txt +++ b/MathLib/CMakeLists.txt @@ -34,7 +34,7 @@ target_link_libraries( $<$:petsc> Eigen3::Eigen $<$:OpenMP::OpenMP_CXX> - fmt::fmt + fmt::fmt-header-only ) if(OGS_USE_LIS) diff --git a/scripts/cmake/CheckHeaderCompilation.cmake b/scripts/cmake/CheckHeaderCompilation.cmake index 15df621a6fe..fd8adb5cacd 100644 --- a/scripts/cmake/CheckHeaderCompilation.cmake +++ b/scripts/cmake/CheckHeaderCompilation.cmake @@ -45,7 +45,7 @@ function(_check_header_compilation target) nlohmann_json::nlohmann_json range-v3 # petsc; is given via ${PETSC_INCLUDES} below. - fmt::fmt + fmt::fmt-header-only ) # Ignore non-existing targets or interface libs if(NOT TARGET ${lib}) diff --git a/scripts/cmake/Dependencies.cmake b/scripts/cmake/Dependencies.cmake index fcd15b66594..0a6cf4a8439 100644 --- a/scripts/cmake/Dependencies.cmake +++ b/scripts/cmake/Dependencies.cmake @@ -33,7 +33,7 @@ endif() # Check spdlog release for compatible fmt release. fmt may be provided by vtk # _ext build. -if(NOT TARGET fmt::fmt) +if(NOT TARGET fmt::fmt-header-only) CPMFindPackage( NAME fmt GIT_TAG 10.1.0