-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ce23a2
commit 905da41
Showing
1 changed file
with
0 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||