diff --git a/MathLib/CMakeLists.txt b/MathLib/CMakeLists.txt index 277a992802a8e6292746062db3c1a65e40282331..d15211c450a2e3c5611862c32d4e67ffd813a197 100644 --- a/MathLib/CMakeLists.txt +++ b/MathLib/CMakeLists.txt @@ -28,12 +28,12 @@ set_target_properties(MathLib PROPERTIES LINKER_LANGUAGE CXX) target_link_libraries( MathLib PUBLIC BaseLib - ${OpenMP_CXX_LIBRARIES} $<$<TARGET_EXISTS:LAPACK::LAPACK>:LAPACK::LAPACK> $<$<BOOL:${OGS_USE_LIS}>:${LIS_LIBRARIES}> $<$<BOOL:${OGS_USE_CVODE}>:CVODE::CVODE> $<$<BOOL:${OGS_USE_PETSC}>:petsc> Eigen3::Eigen + $<$<TARGET_EXISTS:OpenMP::OpenMP_CXX>:OpenMP::OpenMP_CXX> ) if(OGS_USE_LIS)