diff options
| author | Naios <naios-dev@live.de> | 2017-12-19 17:22:30 +0100 |
|---|---|---|
| committer | Naios <naios-dev@live.de> | 2017-12-20 04:04:28 +0100 |
| commit | 95a837717be55a72a1ebc9c00ce3a41bf5df76c8 (patch) | |
| tree | 5637577f329c60cba01902ae1d9db3a2880c6082 /dep | |
| parent | 12853475186569b2f47f1d69f817cbef8e590d83 (diff) | |
Build: Disable warnings in protobuf projects
Diffstat (limited to 'dep')
| -rw-r--r-- | dep/protobuf/CMakeLists.txt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/dep/protobuf/CMakeLists.txt b/dep/protobuf/CMakeLists.txt index c4b5d83f45e..7bcd37da7c2 100644 --- a/dep/protobuf/CMakeLists.txt +++ b/dep/protobuf/CMakeLists.txt @@ -49,7 +49,6 @@ if (MSVC) ${protobuf_STAT_SRCS} src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc ) - add_compile_options(/wd4800) else() set(protobuf_STAT_SRCS ${protobuf_STAT_SRCS} @@ -68,6 +67,7 @@ target_include_directories(protobuf target_link_libraries(protobuf PRIVATE trinity-default-interface + trinity-no-warning-interface PUBLIC threads) @@ -80,6 +80,16 @@ if (BUILD_SHARED_LIBS) -DPROTOBUF_USE_DLLS) endif() +if (MSVC) + target_compile_options(protobuf + PRIVATE + /wd4996) + + target_compile_definitions(protobuf + PRIVATE + -D_SCL_SECURE_NO_WARNINGS) +endif() + set_target_properties(protobuf PROPERTIES FOLDER |
