diff --git a/MathLib/CMakeLists.txt b/MathLib/CMakeLists.txt index e5e1cd9c50e61d2161f19d91ec166cc50e3e804f..d7e6f97f1c4aabaf9b9332f20630b53e3f71bd14 100644 --- a/MathLib/CMakeLists.txt +++ b/MathLib/CMakeLists.txt @@ -41,7 +41,6 @@ target_link_libraries(MathLib ${OpenMP_CXX_LIBRARIES} $<$<TARGET_EXISTS:LAPACK::LAPACK>:LAPACK::LAPACK> $<$<BOOL:${OGS_USE_LIS}>:${LIS_LIBRARIES}> - $<$<BOOL:${OGS_USE_MKL}>:${MKL_LIBRARIES}> PRIVATE spdlog::spdlog ) @@ -52,6 +51,9 @@ endif() if(OGS_USE_CVODE) target_link_libraries(MathLib PUBLIC ${CVODE_LIBRARIES}) endif() +if(OGS_USE_MKL) + target_link_libraries(MathLib PUBLIC ${MKL_LIBRARIES}) +endif() target_compile_definitions(MathLib PUBLIC