diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d529e58d9e2..a3521cf28be 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -10,10 +10,12 @@ set_source_files_properties( ) # Suppress compiler warnings in generated protobuf C++ code. -set_source_files_properties( - ${PROTO_PRIVATE_SRC} - COMPILE_FLAGS -Wno-unused-parameter -) +if(NOT MSVC) + set_source_files_properties( + ${PROTO_PRIVATE_SRC} + COMPILE_FLAGS -Wno-unused-parameter + ) +endif() set(network_sources network/NetworkConfig.cc