diff --git a/CMakeLists.txt b/CMakeLists.txt index ab7fe24a..56033f04 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1066,6 +1066,12 @@ if( ENABLE_HYPREDRV ) set( HYPREDRV_HYPRE_LIBRARY "${HYPRE_DIR}/lib/libHYPRE.a" ) set( HYPREDRV_HYPRE_LIBRARIES "${HYPREDRV_HYPRE_LIBRARY}" ) list( APPEND HYPREDRV_HYPRE_LIBRARIES ${BLAS_LIBRARIES} ${LAPACK_LIBRARIES} ) + if( ENABLE_MPI AND ENABLE_SUPERLU_DIST ) + list( APPEND HYPREDRV_HYPRE_LIBRARIES + ${SUPERLU_DIR}/lib/libsuperlu_dist.a + ${PARMETIS_LIBRARIES} + ${CMAKE_CXX_IMPLICIT_LINK_LIBRARIES} ) + endif() string( REPLACE ";" "^" HYPREDRV_HYPRE_LIBRARIES_ARG "${HYPREDRV_HYPRE_LIBRARIES}" ) set( HYPREDRV_MPI_ARGS ) set( HYPREDRV_ACCELERATOR_ARGS )