Skip to content

Commit 328e6af

Browse files
committed
Do not link against OpenMP if WITH_OpenMP is set to FALSE
1 parent 54b922b commit 328e6af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ target_link_libraries(
7575
"${PROJECT_NAME}-lib"
7676
PUBLIC
7777
"${lib-deps}"
78-
"OpenMP::OpenMP_Fortran"
78+
"$<$<BOOL:${WITH_OpenMP}>:OpenMP::OpenMP_Fortran>"
7979
)
8080
target_include_directories(
8181
"${PROJECT_NAME}-lib"

0 commit comments

Comments
 (0)