explicitly use the MPI::C imported target on the main executable
This commit is contained in:
@ -421,6 +421,7 @@ if(BUILD_MPI)
|
||||
endif()
|
||||
endif()
|
||||
target_link_libraries(lammps PUBLIC MPI::MPI_C)
|
||||
target_link_libraries(lmp PUBLIC MPI::MPI_C)
|
||||
else()
|
||||
target_sources(lammps PRIVATE ${LAMMPS_SOURCE_DIR}/STUBS/mpi.cpp)
|
||||
add_library(mpi_stubs INTERFACE)
|
||||
|
||||
Reference in New Issue
Block a user