Skip to content

Commit

Permalink
Use /bigobj in MSVC to support protobuf 3.12 library (#56) (#57)
Browse files Browse the repository at this point in the history
Signed-off-by: Jozef Izso <[email protected]>
  • Loading branch information
jozefizso authored May 18, 2020
1 parent e54b553 commit 6563e6b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 6563e6b

Please sign in to comment.