Index: third_party/protobuf/cmake/CMakeLists.txt |
diff --git a/third_party/protobuf/cmake/CMakeLists.txt b/third_party/protobuf/cmake/CMakeLists.txt |
index 15ae457aa2b35640e785759a19e888ce7e15066e..f32a0e4e65e538a91e47cfa09900721e4f3954c4 100644 |
--- a/third_party/protobuf/cmake/CMakeLists.txt |
+++ b/third_party/protobuf/cmake/CMakeLists.txt |
@@ -118,6 +118,8 @@ if (MSVC) |
# Build with multiple processes |
add_definitions(/MP) |
add_definitions(/wd4244 /wd4267 /wd4018 /wd4355 /wd4800 /wd4251 /wd4996 /wd4146 /wd4305) |
+ # Allow big object |
+ add_definitions(/bigobj) |
string(REPLACE "/" "\\" PROTOBUF_SOURCE_WIN32_PATH ${protobuf_SOURCE_DIR}) |
string(REPLACE "/" "\\" PROTOBUF_BINARY_WIN32_PATH ${protobuf_BINARY_DIR}) |
configure_file(extract_includes.bat.in extract_includes.bat) |