Skip to content

Commit 43b007b

Browse files
committed
link only openmp found
1 parent 894c1b9 commit 43b007b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cpp/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ if (BUILD_C_BINDINGS)
8989
else()
9090
add_library(flann SHARED ${C_SOURCES})
9191

92-
if(MINGW)
93-
target_link_libraries(flann -lgomp)
94-
endif(MINGW)
92+
if(MINGW AND OPENMP_FOUND)
93+
target_link_libraries(flann gomp)
94+
endif()
9595
endif()
9696

9797
set_target_properties(flann PROPERTIES

0 commit comments

Comments
 (0)