forked from lijiext/lammps
added support -DLAMMPS_XDR and -DPACK_*
This commit is contained in:
parent
08c920029f
commit
a3885b78ad
|
@ -115,6 +115,16 @@ if(ENABLE_KSPACE)
|
|||
include_directories(${FFTW3_INCLUDE_DIRS})
|
||||
list(APPEND LAMMPS_LINK_LIBS ${FFTW3_LIBRARIES})
|
||||
endif()
|
||||
set(PACK_OPTIMIZATION "PACK_ARRAY" CACHE STRING "Optimization for FFT")
|
||||
set_property(CACHE LAMMPS_SIZE_LIMIT PROPERTY STRINGS PACK_ARRAY PACK_POINTER PACK_MEMCPY)
|
||||
add_definitions(-D${PACK_OPTIMIZATION})
|
||||
endif()
|
||||
|
||||
if(ENABLE_MISC)
|
||||
option(LAMMPS_XDR "include XDR compatibility files for doing particle dumps in XTC format" OFF)
|
||||
if(LAMMPS_XDR)
|
||||
add_definitions(-DLAMMPS_XDR)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(ENABLE_KOKKOS)
|
||||
|
|
Loading…
Reference in New Issue