Skip to content

Commit

Permalink
Try to suppress linkage against C++ MPI bindings
Browse files Browse the repository at this point in the history
The MPI C++ bindings have long since been deprecated,
and we don't use them in IMP, so try to prevent linkage
against them. For example, building IMP on RHEL8 with
OpenMPI currently links against libmpi_cxx.so.40, which
then fails on a Fedora 40 box as the C++ bindings have
been removed in OpenMPI 5.
  • Loading branch information
benmwebb committed Apr 25, 2024
1 parent e700b15 commit 841a81d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/mpi/dependency/MPI.cmake
Original file line number Diff line number Diff line change
@@ -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}")
Expand Down

0 comments on commit 841a81d

Please sign in to comment.