more CMake scripting updates to use C style MPI libraries not C++

This commit is contained in:
Axel Kohlmeyer
2025-05-15 02:49:02 -04:00
parent b3e7121535
commit 9abb171d05
5 changed files with 28 additions and 30 deletions

View File

@ -27,7 +27,7 @@ if(MSVC)
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
endif()
find_package(MPI REQUIRED)
find_package(MPI REQUIRED COMPONENTS C)
# do not include the (obsolete) MPI C++ bindings which makes
# for leaner object files and avoids namespace conflicts
set(MPI_CXX_SKIP_MPICXX TRUE)