cmake: remove LAMMPS_USE_MPI4WIN hacks

This commit is contained in:
Christoph Junghans
2020-03-31 16:06:08 -06:00
parent 041941ed81
commit 53ce24fac1
3 changed files with 1 additions and 11 deletions

View File

@ -22,5 +22,4 @@ set_target_properties(LAMMPS::MPI PROPERTIES
IMPORTED_LOCATION "${SOURCE_DIR}/lib/libmpi.a"
INTERFACE_INCLUDE_DIRECTORIES "${SOURCE_DIR}/include"
INTERFACE_COMPILE_DEFINITIONS "MPICH_SKIP_MPICXX")
add_dependencies(lammps mpi4win_build)
set(LAMMPS_USE_MPI4WIN ON)
add_dependencies(LAMMPS::MPI mpi4win_build)

View File

@ -108,9 +108,6 @@ if(PKG_GPU)
endif()
target_link_libraries(lammps PRIVATE gpu)
if(LAMMPS_USE_MPI4WIN)
add_dependencies(gpu mpi4win_build)
endif()
add_executable(nvc_get_devices ${LAMMPS_LIB_SOURCE_DIR}/gpu/geryon/ucl_get_devices.cpp)
target_compile_definitions(nvc_get_devices PRIVATE -DUCL_CUDADR)
@ -172,9 +169,6 @@ if(PKG_GPU)
target_compile_definitions(gpu PRIVATE -DUSE_OPENCL)
target_link_libraries(lammps PRIVATE gpu)
if(LAMMPS_USE_MPI4WIN)
add_dependencies(gpu mpi4win_build)
endif()
add_executable(ocl_get_devices ${LAMMPS_LIB_SOURCE_DIR}/gpu/geryon/ucl_get_devices.cpp)
target_compile_definitions(ocl_get_devices PRIVATE -DUCL_OPENCL)