Browse Source

Minor patch for the assimp's CMakeLists to fix MinGW build.

Yao Wei Tjong 姚伟忠 8 years ago
parent
commit
0af84653df
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/ThirdParty/Assimp/CMakeLists.txt

+ 1 - 1
Source/ThirdParty/Assimp/CMakeLists.txt

@@ -482,7 +482,7 @@ if (ASSIMP_BUILD_IFC_IMPORTER)
   if (MSVC)
   if (MSVC)
     set_source_files_properties(code/IFCReaderGen1.cpp code/IFCReaderGen2.cpp PROPERTIES COMPILE_FLAGS "/bigobj")
     set_source_files_properties(code/IFCReaderGen1.cpp code/IFCReaderGen2.cpp PROPERTIES COMPILE_FLAGS "/bigobj")
   elseif(CMAKE_COMPILER_IS_MINGW)
   elseif(CMAKE_COMPILER_IS_MINGW)
-    set_source_files_properties(code/IFCReaderGen1.cpp code/IFCReaderGen2.cpp PROPERTIES COMPILE_FLAGS "-Wa,-mbig-obj")   # Urho3D: Remove -O2 flag as it cannot be set here because we don't know the effective build config
+    set_source_files_properties(code/IFCReaderGen1.cpp code/IFCReaderGen2.cpp PROPERTIES COMPILE_FLAGS "-O2")   # Urho3D: Remove -Wa,-mbig-obj flag as some older MinGW version may not support it yet
   endif()
   endif()
 endif (ASSIMP_BUILD_IFC_IMPORTER)
 endif (ASSIMP_BUILD_IFC_IMPORTER)