Skip to content

Commit

Permalink
Remove obsolete patch
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomofiorin committed Nov 22, 2024
1 parent 3ce23a2 commit 905da41
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions lammps/COLVARS.cmake.diff
Original file line number Diff line number Diff line change
@@ -1,17 +0,0 @@
diff --git a/cmake/Modules/Packages/COLVARS.cmake b/cmake/Modules/Packages/COLVARS.cmake
index 745c1de026..b943a0345e 100644
--- a/cmake/Modules/Packages/COLVARS.cmake
+++ b/cmake/Modules/Packages/COLVARS.cmake
@@ -24,6 +24,12 @@ target_include_directories(colvars PUBLIC ${LAMMPS_LIB_SOURCE_DIR}/colvars)
target_include_directories(colvars PRIVATE ${LAMMPS_SOURCE_DIR})
target_link_libraries(lammps PRIVATE colvars)

+if(BUILD_OMP)
+ # Enable OpenMP for Colvars as well
+ target_compile_options(colvars PRIVATE ${OpenMP_CXX_FLAGS})
+ target_link_libraries(colvars PRIVATE OpenMP::OpenMP_CXX)
+endif()
+
if(COLVARS_DEBUG)
# Need to export the define publicly to be valid in interface code
target_compile_definitions(colvars PUBLIC -DCOLVARS_DEBUG)

0 comments on commit 905da41

Please sign in to comment.