From 94fb53b47375a7a1b1f24b8c9282d91be76fc8c5 Mon Sep 17 00:00:00 2001 From: Georgii Tishenin Date: Wed, 7 Feb 2024 18:13:33 +0100 Subject: [PATCH] Add /bigobj compile option for MSVC to handle large object files Resolves C1128 error for MNAEigenvalueExtractor.cpp Signed-off-by: Georgii Tishenin --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ed1bcafe9c..85ae28ce94 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,6 +57,8 @@ if(MSVC) add_definitions(-D_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS) add_definitions(-D_SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING) + add_compile_options(/bigobj) # TODO: [Georgii] remove this after fixing the issue with MNAEigenvalueExtractor.cpp (error C1128) + # Set exception handling for portability set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc")