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(