vcpkg/ports/ignition-msgs5/01-protobuf.patch
Jozef Izso e6c6d96218
[protobuf] protobuf v3.12.0 (#11397)
* [protobuf] protobuf v3.12.0

* Fix ignition-msg5 library to compile with protobuf 3.12
2020-05-19 15:09:01 -07:00

14 lines
501 B
Diff

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f68bf3d..d4d1372 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}