Commit 385c6f7f authored by Christoph Junghans's avatar Christoph Junghans
Browse files

cmake: clean up

parent fc1be074
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -40,6 +40,10 @@ if(ENABLE_MPI)
  find_package(MPI REQUIRED)
  include_directories(${MPI_C_INCLUDE_PATH})
  list(APPEND LAMMPS_LINK_LIBS ${MPI_CXX_LIBRARIES})
else()
  file(GLOB MPI_SOURCES ${LAMMPS_SOURCE_DIR}/STUBS/mpi.c)
  list(APPEND LIB_SOURCES ${MPI_SOURCES})
  include_directories(${LAMMPS_SOURCE_DIR}/STUBS)
endif()

option(CMAKE_VERBOSE_MAKEFILE "Verbose makefile" OFF)
@@ -217,12 +221,6 @@ list(APPEND LAMMPS_LINK_LIBS ${MATH_LIBRARIES})
#Do NOT go into src to not conflict with old Makefile build system
#add_subdirectory(src)

if(NOT ENABLE_MPI)
  file(GLOB MPI_SOURCES ${LAMMPS_SOURCE_DIR}/STUBS/mpi.c)
  list(APPEND LIB_SOURCES ${MPI_SOURCES})
  include_directories(${LAMMPS_SOURCE_DIR}/STUBS)
endif()

include(StyleHeaderUtils)
RegisterStyles(${LAMMPS_SOURCE_DIR})