Permalink
Browse files

Fix MPI warning in gcc8 by disabling the unused OpenMPI C++ API

  • Loading branch information...
milot-mirdita committed Feb 7, 2019
1 parent fbc269d commit da6c1a5a7be5d82719f796b85ce9cbacf9f2162c
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/CMakeLists.txt
@@ -179,7 +179,8 @@ if (${HAVE_MPI})
if (MPI_FOUND)
message("-- Found MPI")
target_include_directories(mmseqs-framework PUBLIC ${MPI_INCLUDE_PATH})
target_compile_definitions(mmseqs-framework PUBLIC -DHAVE_MPI=1)
#Hack (OMPI_SKIP_MPICXX=1): https://github.com/open-mpi/ompi/issues/5157#issuecomment-388495496
target_compile_definitions(mmseqs-framework PUBLIC -DHAVE_MPI=1 -DOMPI_SKIP_MPICXX=1)
target_link_libraries(mmseqs-framework ${MPI_LIBRARIES})
append_target_property(mmseqs-framework COMPILE_FLAGS ${MPI_COMPILE_FLAGS})
append_target_property(mmseqs-framework LINK_FLAGS ${MPI_LINK_FLAGS})

0 comments on commit da6c1a5

Please sign in to comment.