Add -mbig-obj for MinGW compilation
MODIFY
CMakeLists.txt
CMakeLists.txt
@@ -19,8 +19,9 @@ if(NOT MSVC)
endif()
if(MSVC)
- # Allow big object
- add_definitions(/bigobj)
+ add_definitions(/bigobj) # Allow big object
+elseif(MINGW)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wa,-mbig-obj") # Allow big object
endif()
######################################################################

Add -mbig-obj for MinGW compilation