Skip to content

Commit cdd0012

Browse files
committed
Fixed link error on MinGW + MSYS
1 parent 0fc6244 commit cdd0012

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cpp/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ if (BUILD_C_BINDINGS)
8888
target_link_libraries(flann -Wl,-whole-archive flann_s -Wl,-no-whole-archive)
8989
else()
9090
add_library(flann SHARED ${C_SOURCES})
91+
92+
if(MINGW)
93+
target_link_libraries(flann -lgomp)
94+
endif(MINGW)
9195
endif()
9296

9397
set_target_properties(flann PROPERTIES

0 commit comments

Comments
 (0)