diff --git a/modules/mpi/dependency/MPI.cmake b/modules/mpi/dependency/MPI.cmake index 3d2dcf19ab..5ac18c0a49 100644 --- a/modules/mpi/dependency/MPI.cmake +++ b/modules/mpi/dependency/MPI.cmake @@ -1,3 +1,7 @@ +# We don't need the deprecated C++ bindings, so try to suppress linkage +# against them +set(MPI_CXX_SKIP_MPICXX TRUE) + find_package(MPI) if("${MPI_CXX_FOUND}")