From 8659d011f93cad63de34a79f9b0543705d5da825 Mon Sep 17 00:00:00 2001
From: redsky17 <joedonofry@gmail.com>
Date: Wed, 16 Jan 2019 01:21:18 +0000
Subject: [PATCH] Add /bigobj for MSVC build.

---
 CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8374e133f..6373cce09 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -30,6 +30,10 @@ if(NOT MSVC)
     )
 endif()
 
+if(MSVC)
+    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj -bigobj")
+endif()
+
 if(ASAN)
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address,undefined")
 endif()
-- 
GitLab