forked from lijiext/lammps
cmake: atc needs mpi itself
This commit is contained in:
parent
51eb865d63
commit
4736402dd9
|
@ -202,6 +202,7 @@ else()
|
|||
add_library(mpi_stubs STATIC ${MPI_SOURCES})
|
||||
target_include_directories(mpi_stubs PUBLIC ${LAMMPS_SOURCE_DIR}/STUBS)
|
||||
target_link_libraries(lammps PRIVATE mpi_stubs)
|
||||
add_library(MPI::MPI_CXX ALIAS mpi_stubs)
|
||||
endif()
|
||||
|
||||
set(LAMMPS_SIZES "smallbig" CACHE STRING "LAMMPS integer sizes (smallsmall: all 32-bit, smallbig: 64-bit #atoms #timesteps, bigbig: also 64-bit imageint, 64-bit atom ids)")
|
||||
|
@ -464,7 +465,7 @@ if(PKG_USER-ATC)
|
|||
if(LAMMPS_SIZES STREQUAL BIGBIG)
|
||||
message(FATAL_ERROR "The USER-ATC Package is not compatible with -DLAMMPS_BIGBIG")
|
||||
endif()
|
||||
target_link_libraries(atc PRIVATE ${LAPACK_LIBRARIES})
|
||||
target_link_libraries(atc PRIVATE ${LAPACK_LIBRARIES} MPI::MPI_CXX)
|
||||
target_include_directories(atc PRIVATE ${LAMMPS_SOURCE_DIR})
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in New Issue