From ef8cdfdfdc811ecad3055150eac28faacd833a81 Mon Sep 17 00:00:00 2001 From: Mathieu Faverge <mathieu.faverge@inria.fr> Date: Fri, 1 Jan 2021 16:57:07 +0100 Subject: [PATCH] Add scotch dependency --- src/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 871cd359..865e9cf4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -145,6 +145,11 @@ if (SPM_WITH_MPI) target_link_libraries(spm PUBLIC MPI::MPI_C) endif (SPM_WITH_MPI) +# spm may depend on Scotch if compiled within PaStiX +if (PASTIX_ORDERING_SCOTCH) + target_link_libraries(spm PUBLIC MORSE::SCOTCH) +endif() + # install the library install(TARGETS spm ARCHIVE DESTINATION ${LIB_INSTALL_DIR} -- GitLab