From 3849839a6eedeff95ff41e692d2fbb56b1e889c6 Mon Sep 17 00:00:00 2001 From: fpetrini15 Date: Wed, 10 Jul 2024 11:45:21 -0700 Subject: [PATCH] Use common compile options --- 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(