Condense export of debug macro

This commit is contained in:
Giacomo Fiorin 2020-09-16 17:28:28 -04:00
parent b99e005ca1
commit 85d36ad6c4
1 changed files with 2 additions and 2 deletions

View File

@ -24,8 +24,8 @@ target_include_directories(colvars PUBLIC ${LAMMPS_LIB_SOURCE_DIR}/colvars)
target_link_libraries(lammps PRIVATE colvars)
if(COLVARS_DEBUG)
target_compile_definitions(colvars PRIVATE -DCOLVARS_DEBUG)
target_compile_definitions(lammps PRIVATE -DCOLVARS_DEBUG) # For the proxy
# Need to export the macro publicly to also affect the proxy
target_compile_definitions(colvars PUBLIC -DCOLVARS_DEBUG)
endif()
if(COLVARS_LEPTON)