Browse Source

Fix native debug configuration build of Assimp using MinGW compiler.
By removing the CMAKE_CROSSCOMPILING condition check, the workaround is now applied for both native and cross-compiling cases.

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

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

@@ -8,7 +8,7 @@
 
 # Modified by Lasse Oorni and Yao Wei Tjong for Urho3D
 
-if (CMAKE_CROSSCOMPILING AND MINGW)
+if (MINGW)
     # The IFCReaderGen.cpp.obj has too many sections in DEBUG configuration build
     # Since GCC does not support /bigobj compiler flags as in MSVC, we use optimization flags to reduce the object file size
     set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O1")