Buildsystem/MSVC: Enabled /bigobj for all x64 build types

(cherry picked from commit 52127197ec3ab3c77397867a9ab674fe6c0d8aeb)
This commit is contained in:
Shauren authored and DDuarte committed 2015-07-25 16:42:46 +01:00
1 parent 130878c1a5
commit f03f5cc1f2
1 file changed
+2 -2
+2 -2
View File
@@ -19,8 +19,8 @@ if(PLATFORM EQUAL 64)
message(STATUS "MSVC: 64-bit platform, enforced -D_WIN64 parameter")
#Enable extended object support for debug compiles on X64 (not required on X86)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /bigobj")
message(STATUS "MSVC: Enabled extended object-support for debug-compiles")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
message(STATUS "MSVC: Enabled increased number of sections in object files")
else()
# mark 32 bit executables large address aware so they can use > 2GB address space
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /LARGEADDRESSAWARE")