Skip to content

Commit

Permalink
set -bigobj in Debug build with msvc because it is required
Browse files Browse the repository at this point in the history
  • Loading branch information
Puerling committed Sep 12, 2024
1 parent 80958ef commit 07ac009
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/CMake/CompilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
MESSAGE( STATUS ">> Chose compiler: MSVC" )
### Compiler Flags
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNOMINMAX" )
if (CMAKE_BUILD_TYPE MATCHES "[dD]ebug")
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -bigobj" )
endif()
######################################################################

######## Intel Compiler - icc ########################################
Expand Down

0 comments on commit 07ac009

Please sign in to comment.