From 8e496c88c435904f873ff945f9fde9c6e91f885e Mon Sep 17 00:00:00 2001 From: Matt Mitchell Date: Tue, 29 Dec 2020 07:56:29 -0700 Subject: [PATCH] add /bigobj MSVC compiler flag --- cmake/CompilerFlags.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/CompilerFlags.cmake b/cmake/CompilerFlags.cmake index 5279ad686be..d78b49f2a1c 100644 --- a/cmake/CompilerFlags.cmake +++ b/cmake/CompilerFlags.cmake @@ -22,6 +22,7 @@ endif() IF ( MSVC AND NOT ( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel" ) ) # Visual C++ (VS 2013) # COMPILER FLAGS + ADD_COMPILE_OPTIONS("/bigobj") ADD_COMPILE_OPTIONS("/nologo") ADD_COMPILE_OPTIONS("/EHsc") ADD_COMPILE_OPTIONS("/MP") # Enables multi-processor compilation of source within a single project