Skip to content

Commit

Permalink
[cmake] Linking MathLib to MKL privately is sufficient.
Browse files Browse the repository at this point in the history
  • Loading branch information
bilke committed Apr 23, 2024
1 parent 2e30a8c commit d472b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MathLib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ target_link_libraries(
$<$<BOOL:${OGS_USE_LIS}>:${LIS_LIBRARIES}>
$<$<BOOL:${OGS_USE_CVODE}>:CVODE::CVODE>
$<$<BOOL:${OGS_USE_PETSC}>:PkgConfig::PETSC>
$<$<BOOL:${OGS_USE_MKL}>:MKL::MKL>
Eigen3::Eigen
$<$<TARGET_EXISTS:OpenMP::OpenMP_CXX>:OpenMP::OpenMP_CXX>
PRIVATE $<$<BOOL:${OGS_USE_MKL}>:MKL::MKL>
)
if(OGS_USE_MKL AND "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
# Otherwise required MKL libs get stripped out (don't show up in ldd):
Expand Down

0 comments on commit d472b21

Please sign in to comment.