roll back changes switching from MPI::MPI_CXX to MPI::MPI_C

This commit is contained in:
Axel Kohlmeyer
2025-06-02 15:48:40 -04:00
parent 1fae7e3f98
commit 1fc8e05642
8 changed files with 26 additions and 30 deletions

View File

@ -33,10 +33,11 @@ endif()
################################################################################
# MPI configuration
# do not include the (obsolete) MPI C++ bindings which makes
# for leaner object files and avoids namespace conflicts
set(MPI_CXX_SKIP_MPICXX TRUE)
if(NOT CMAKE_CROSSCOMPILING)
enable_language(C)
set(MPI_CXX_SKIP_MPICXX TRUE)
find_package(MPI QUIET COMPONENTS C)
find_package(MPI QUIET COMPONENTS CXX)
option(BUILD_MPI "Build MPI version" ${MPI_FOUND})
else()
option(BUILD_MPI "Build MPI version" OFF)