Skip to content

Commit

Permalink
set -DCOLVARS_LAMMPS when compiling colvars library
Browse files Browse the repository at this point in the history
  • Loading branch information
akohlmey committed Sep 17, 2020
1 parent b9919b7 commit b965121
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/Modules/Packages/USER-COLVARS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if(COLVARS_LEPTON)
endif()

add_library(colvars STATIC ${COLVARS_SOURCES})
target_compile_definitions(colvars PRIVATE -DLAMMPS_${LAMMPS_SIZES})
target_compile_definitions(colvars PRIVATE -DCOLVARS_LAMMPS)
set_target_properties(colvars PROPERTIES OUTPUT_NAME lammps_colvars${LAMMPS_MACHINE})
target_include_directories(colvars PUBLIC ${LAMMPS_LIB_SOURCE_DIR}/colvars)
target_link_libraries(lammps PRIVATE colvars)
Expand Down
2 changes: 1 addition & 1 deletion lib/colvars/Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ else
COLVARS_DEBUG_INCFLAGS = -DCOLVARS_DEBUG
endif

COLVARS_INCFLAGS = $(COLVARS_DEBUG_INCFLAGS) $(COLVARS_PYTHON_INCFLAGS)
COLVARS_INCFLAGS = -DCOLVARS_LAMMPS $(COLVARS_DEBUG_INCFLAGS) $(COLVARS_PYTHON_INCFLAGS)


.SUFFIXES:
Expand Down

0 comments on commit b965121

Please sign in to comment.