diff --git a/CMakeLists.txt b/CMakeLists.txt index 39811f10bc3d..ddb231c94831 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,6 +39,9 @@ else() # Performance set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -funroll-loops") endif() +if(WIN32 AND MINGW) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++") +endif() # AVX if(USE_AVX)