Skip to content

Commit 4f01ad8

Browse files
committed
Merge pull request opencv#9052 from jqly:patch-1
2 parents 5590aea + 4445930 commit 4f01ad8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmake/OpenCVCompilerOptions.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,9 @@ endif()
248248
# Extra link libs if the user selects building static libs:
249249
if(NOT BUILD_SHARED_LIBS AND CMAKE_COMPILER_IS_GNUCXX AND NOT ANDROID)
250250
# Android does not need these settings because they are already set by toolchain file
251-
set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} stdc++)
251+
if(NOT MINGW)
252+
set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} stdc++)
253+
endif()
252254
set(OPENCV_EXTRA_FLAGS "-fPIC ${OPENCV_EXTRA_FLAGS}")
253255
endif()
254256

0 commit comments

Comments
 (0)