port MPI stubs workaround to USER-ATC
This commit is contained in:
@ -411,6 +411,13 @@ foreach(SIMPLE_LIB POEMS USER-ATC USER-AWPMD USER-H5MD)
|
||||
target_include_directories(awpmd PUBLIC ${LAMMPS_LIB_SOURCE_DIR}/awpmd/systems/interact ${LAMMPS_LIB_SOURCE_DIR}/awpmd/ivutils/include)
|
||||
elseif(PKG_LIB STREQUAL h5md)
|
||||
target_include_directories(h5md PUBLIC ${LAMMPS_LIB_SOURCE_DIR}/h5md/include ${HDF5_INCLUDE_DIRS})
|
||||
elseif(PKG_LIB STREQUAL atc)
|
||||
target_include_directories(atc PUBLIC ${LAMMPS_LIB_SOURCE_DIR}/atc)
|
||||
if(NOT BUILD_MPI)
|
||||
target_link_libraries(atc PRIVATE mpi_stubs)
|
||||
else()
|
||||
target_link_libraries(atc PRIVATE MPI::CXX)
|
||||
endif()
|
||||
else()
|
||||
target_include_directories(${PKG_LIB} PUBLIC ${LAMMPS_LIB_SOURCE_DIR}/${PKG_LIB})
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user