--- a/interfaces/CMakeLists.txt
+++ b/interfaces/CMakeLists.txt
@@ -28,6 +28,8 @@
     set_target_properties(coin PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
 elseif (MSVC)
     set_target_properties(coin PROPERTIES COMPILE_FLAGS "/bigobj")
+elseif (MINGW)
+    set_target_properties(coin PROPERTIES COMPILE_FLAGS "-Wa,-mbig-obj")
 elseif(WIN32)
     target_link_libraries(coin PUBLIC ${Python_LIBRARIES})
 endif ()
@@ -65,6 +67,8 @@
         set_target_properties(soqt PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
     elseif (MSVC)
         set_target_properties(coin PROPERTIES COMPILE_FLAGS "/bigobj")
+    elseif (MINGW)
+        set_target_properties(coin PROPERTIES COMPILE_FLAGS "-Wa,-mbig-obj")
     elseif (WIN32)
         target_link_libraries(soqt PUBLIC ${Python_LIBRARIES})
     endif ()
