Skip to content

Commit

Permalink
[cmake] Fix fmt-target.
Browse files Browse the repository at this point in the history
  • Loading branch information
bilke committed Aug 24, 2023
1 parent b083a31 commit 4c2eb54
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion GeoLib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ target_link_libraries(
PUBLIC BaseLib Eigen3::Eigen MathLib $<$<BOOL:${OGS_BUILD_GUI}>:rapidxml>
$<$<BOOL:${OGS_BUILD_GUI}>:Qt5::Xml>
$<$<BOOL:${OGS_BUILD_GUI}>:Qt5::XmlPatterns>
fmt::fmt
fmt::fmt-header-only
PRIVATE range-v3 tet
)

Expand Down
2 changes: 1 addition & 1 deletion MathLib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ target_link_libraries(
$<$<BOOL:${OGS_USE_PETSC}>:petsc>
Eigen3::Eigen
$<$<TARGET_EXISTS:OpenMP::OpenMP_CXX>:OpenMP::OpenMP_CXX>
fmt::fmt
fmt::fmt-header-only
)

if(OGS_USE_LIS)
Expand Down
2 changes: 1 addition & 1 deletion scripts/cmake/CheckHeaderCompilation.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
2 changes: 1 addition & 1 deletion scripts/cmake/Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c2eb54

Please sign in to comment.