From e827f28a4815ec3a4caa859b333fa67b4ad848ac Mon Sep 17 00:00:00 2001 From: Francesco Petrini Date: Thu, 11 Jul 2024 10:16:44 -0700 Subject: [PATCH] Extend Common Compile Settings to Protobuf (#123) Extend Common Compile Settings to Protobuf --- protobuf/CMakeLists.txt | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/protobuf/CMakeLists.txt b/protobuf/CMakeLists.txt index 5a9677b..34f8374 100644 --- a/protobuf/CMakeLists.txt +++ b/protobuf/CMakeLists.txt @@ -63,11 +63,10 @@ if(${TRITON_COMMON_ENABLE_PROTOBUF}) $ ) - target_compile_options( - proto-library PRIVATE - $<$,$,$>: - -Wall -Wextra -Wno-unused-parameter -Werror> - $<$:/W0 /D_WIN32_WINNT=0x0A00 /EHsc /Zc:preprocessor> + target_link_libraries( + proto-library + PRIVATE + common-compile-settings ) set_target_properties( @@ -136,11 +135,10 @@ if(${TRITON_COMMON_ENABLE_GRPC}) $ ) - target_compile_options( - grpc-service-library PRIVATE - $<$,$,$>: - -Wall -Wextra -Wno-unused-parameter -Werror> - $<$:/W0 /D_WIN32_WINNT=0x0A00 /EHsc /Zc:preprocessor> + target_link_libraries( + grpc-service-library + PRIVATE + common-compile-settings ) set_target_properties( @@ -193,11 +191,10 @@ if(${TRITON_COMMON_ENABLE_GRPC}) $ ) - target_compile_options( - grpc-health-library PRIVATE - $<$,$,$>: - -Wall -Wextra -Wno-unused-parameter -Werror> - $<$:/W0 /D_WIN32_WINNT=0x0A00 /EHsc /Zc:preprocessor> + target_link_libraries( + grpc-health-library + PRIVATE + common-compile-settings ) set_target_properties(