we only need the MPI C library support for loading liblammps.so dynamically

This commit is contained in:
Axel Kohlmeyer
2025-05-26 17:56:26 -04:00
parent 2e775034f9
commit 6ea16aead1

View File

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