|
@@ -557,7 +557,7 @@ ADD_ASSIMP_IMPORTER( IFC
|
|
if (ASSIMP_BUILD_IFC_IMPORTER)
|
|
if (ASSIMP_BUILD_IFC_IMPORTER)
|
|
if (MSVC)
|
|
if (MSVC)
|
|
set_source_files_properties(Importer/IFC/IFCReaderGen1_2x3.cpp Importer/IFC/IFCReaderGen2_2x3.cpp PROPERTIES COMPILE_FLAGS "/bigobj")
|
|
set_source_files_properties(Importer/IFC/IFCReaderGen1_2x3.cpp Importer/IFC/IFCReaderGen2_2x3.cpp PROPERTIES COMPILE_FLAGS "/bigobj")
|
|
- elseif(CMAKE_COMPILER_IS_MINGW)
|
|
|
|
|
|
+ elseif(MINGW)
|
|
set_source_files_properties(Importer/IFC/IFCReaderGen1_2x3.cpp Importer/IFC/IFCReaderGen2_2x3.cpp PROPERTIES COMPILE_FLAGS "-O2 -Wa,-mbig-obj")
|
|
set_source_files_properties(Importer/IFC/IFCReaderGen1_2x3.cpp Importer/IFC/IFCReaderGen2_2x3.cpp PROPERTIES COMPILE_FLAGS "-O2 -Wa,-mbig-obj")
|
|
endif()
|
|
endif()
|
|
endif ()
|
|
endif ()
|
|
@@ -862,7 +862,7 @@ ADD_ASSIMP_IMPORTER( MMD
|
|
# optimizations that take up extra space. Given that the issue is a string table overflowing, -Os seemed appropriate
|
|
# optimizations that take up extra space. Given that the issue is a string table overflowing, -Os seemed appropriate
|
|
# Also, I'm not positive if both link & compile flags are needed, but this hopefully ensures that the issue should not
|
|
# Also, I'm not positive if both link & compile flags are needed, but this hopefully ensures that the issue should not
|
|
# recur for edge cases such as static builds.
|
|
# recur for edge cases such as static builds.
|
|
-if ((CMAKE_COMPILER_IS_MINGW) AND (CMAKE_BUILD_TYPE MATCHES Debug))
|
|
|
|
|
|
+if ((MINGW) AND (CMAKE_BUILD_TYPE MATCHES Debug))
|
|
message("-- Applying MinGW StepFileGen1.cpp Debug Workaround")
|
|
message("-- Applying MinGW StepFileGen1.cpp Debug Workaround")
|
|
SET_SOURCE_FILES_PROPERTIES(Importer/StepFile/StepFileGen1.cpp PROPERTIES COMPILE_FLAGS -Os )
|
|
SET_SOURCE_FILES_PROPERTIES(Importer/StepFile/StepFileGen1.cpp PROPERTIES COMPILE_FLAGS -Os )
|
|
SET_SOURCE_FILES_PROPERTIES(Importer/StepFile/StepFileGen1.cpp PROPERTIES LINK_FLAGS -Os )
|
|
SET_SOURCE_FILES_PROPERTIES(Importer/StepFile/StepFileGen1.cpp PROPERTIES LINK_FLAGS -Os )
|