From f8d986ef3a347be31288e2f88d7b10875bfd09b3 Mon Sep 17 00:00:00 2001 From: Pierre Ramet <ramet@labri.fr> Date: Thu, 9 Nov 2017 20:45:09 +0100 Subject: [PATCH] attempt to fix mpi with fortan wrapper --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c9165c3c..bf1ca389 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,9 +98,12 @@ add_dependencies(pastix_spm ) ### Generate the lib -if (MPI_FOUND) +if (MPI_C_FOUND) set_target_properties(pastix_spm PROPERTIES COMPILE_FLAGS "${MPI_COMPILE_FLAGS}") -endif (MPI_FOUND) +target_link_libraries(pastix_spm + ${MPI_C_LIBRARIES} + ) +endif (MPI_C_FOUND) install(TARGETS pastix_spm ARCHIVE DESTINATION lib -- GitLab