Windows: Silenced protobuf compilation warnings. Generated code from protobufs generate warnings on MSVC and other compilers. On MSVC, this clutters the final list of warnings with many (mostly harmless) warnings that we cannot address, due to the fact that protobuf code is generated code.
Review: https://reviews.apache.org/r/56675/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/039343ab Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/039343ab Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/039343ab Branch: refs/heads/master Commit: 039343ab8be125d6491e061d879f42dd9518f9ec Parents: af933d3 Author: Alex Clemmer <[email protected]> Authored: Fri Feb 17 17:58:29 2017 -0800 Committer: Joseph Wu <[email protected]> Committed: Thu Feb 23 14:28:42 2017 -0800 ---------------------------------------------------------------------- src/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/039343ab/src/CMakeLists.txt ---------------------------------------------------------------------- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cacde5e..0d3654f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -125,6 +125,13 @@ add_dependencies(${MESOS_PROTOBUF_TARGET} ${PROTOBUF_TARGET}) target_link_libraries(${MESOS_PROTOBUF_TARGET} ${PROTOBUF_LFLAG}) +if (WIN32) + # Disable all compiler warnings on Protocol Buffers source. + set_target_properties( + ${MESOS_PROTOBUF_TARGET} + PROPERTIES COMPILE_FLAGS "/w") +endif (WIN32) + # Configure Mesos files. ########################
