allow skipping fix timestep tests when LAMMPS was compiled for static libs

This commit is contained in:
Axel Kohlmeyer
2021-09-08 23:41:31 -04:00
parent 8c3924352d
commit 4e92c68244
3 changed files with 11 additions and 1 deletions

View File

@ -117,6 +117,9 @@ endforeach()
# tester for timestepping fixes
add_executable(test_fix_timestep test_fix_timestep.cpp)
if(NOT BUILD_SHARED_LIBS)
target_compile_definitions(test_fix_timestep -DUSING_STATIC_LIBS=1)
endif()
target_link_libraries(test_fix_timestep PRIVATE lammps style_tests)
# tests for timestep related fixes (time integration, thermostat, force manipulation, constraints/restraints)