From 07ac009aa73c2ed8d1a8331aab76a5e884a00530 Mon Sep 17 00:00:00 2001 From: puerling Date: Thu, 12 Sep 2024 13:22:28 +0200 Subject: [PATCH] set `-bigobj` in Debug build with `msvc` because it is required --- core/CMake/CompilerFlags.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/CMake/CompilerFlags.cmake b/core/CMake/CompilerFlags.cmake index 5bc525125..939ad7957 100644 --- a/core/CMake/CompilerFlags.cmake +++ b/core/CMake/CompilerFlags.cmake @@ -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 ########################################