From 979d6cdacbe1b0e16b07fc959de464af98f46c54 Mon Sep 17 00:00:00 2001 From: Jozef Izso Date: Mon, 18 May 2020 17:52:42 +0200 Subject: [PATCH] Use /bigobj in MSVC to support protobuf 3.12 library (#56) Signed-off-by: Jozef Izso --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f68bf3de..d4d13721 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -135,6 +135,8 @@ if(MSVC) # warning is not important since those members do not need to be interfaced # with. set_source_files_properties(${gen_sources} COMPILE_FLAGS "/wd4251 /wd4146") + # Fix for protobuf 3.12 - allow big object files + add_definitions(/bigobj) endif() set_source_files_properties(${gen_headers} ${gen_sources} ${gen_ruby_scripts}