Skip to content

Commit 1a723d8

Browse files
committed
UPBGE: Move /bigobj to rasterizer module and check for MSVC 2015.
We put under MSVC2015 check to avoid any issues with other MSVC versions. Thanks to @Youle for advice.
1 parent ff3a01d commit 1a723d8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/gameengine/Rasterizer/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,10 @@ data_to_c_simple(RAS_OpenGLFilters/RAS_VertexShader2DFilter.glsl SRC)
135135

136136
add_definitions(${GL_DEFINITIONS})
137137

138+
# ----------------------------------------------------------------------------------------------------------------
139+
# workaround to increase the number of sections for object file format in MSVC 2015 compiler when we DEBUG
140+
if(MSVC14)
141+
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /bigobj /Zi /Od /Ob0")
142+
endif()
143+
138144
blender_add_lib(ge_rasterizer "${SRC}" "${INC}" "${INC_SYS}")

0 commit comments

Comments
 (0)