We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5590aea + 4445930 commit 4f01ad8Copy full SHA for 4f01ad8
cmake/OpenCVCompilerOptions.cmake
@@ -248,7 +248,9 @@ endif()
248
# Extra link libs if the user selects building static libs:
249
if(NOT BUILD_SHARED_LIBS AND CMAKE_COMPILER_IS_GNUCXX AND NOT ANDROID)
250
# Android does not need these settings because they are already set by toolchain file
251
- set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} stdc++)
+ if(NOT MINGW)
252
+ set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} stdc++)
253
+ endif()
254
set(OPENCV_EXTRA_FLAGS "-fPIC ${OPENCV_EXTRA_FLAGS}")
255
endif()
256
0 commit comments