further simplification by making STUBS an interface and alias to MPI::MPI_CXX

This commit is contained in:
Axel Kohlmeyer
2022-01-27 23:28:54 -05:00
parent cd8b674f4b
commit db4e69bf38
4 changed files with 8 additions and 21 deletions

View File

@ -42,10 +42,8 @@ if(BUILD_MPI)
if(LAMMPS_LONGLONG_TO_LONG)
target_compile_definitions(lammps INTERFACE -DLAMMPS_LONGLONG_TO_LONG)
endif()
target_link_libraries(lammps INTERFACE MPI::MPI_CXX)
else()
target_include_directories(lammps INTERFACE "${LAMMPS_SOURCE_DIR}/STUBS")
endif()
target_link_libraries(lammps INTERFACE MPI::MPI_CXX)
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)")
set(LAMMPS_SIZES_VALUES smallbig bigbig smallsmall)