Unverified Commit 863b5050 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

port MPI stubs workaround to USER-ATC

parent 4bf9c473
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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()