diff --git a/CMakeLists.txt b/CMakeLists.txt index ec87444..ce9736c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,7 +60,7 @@ target_compile_features(common-compile-settings INTERFACE cxx_std_11) target_compile_options(common-compile-settings INTERFACE $<$,$,$>: -Wall -Wextra -Wno-unused-parameter -Wno-type-limits -Werror> - $<$:/W0 /D_WIN32_WINNT=0x0A00 /EHsc> + $<$:/W0 /D_WIN32_WINNT=0x0A00 /EHsc /Zc:preprocessor> ) # diff --git a/protobuf/CMakeLists.txt b/protobuf/CMakeLists.txt index 2b67918..5a9677b 100644 --- a/protobuf/CMakeLists.txt +++ b/protobuf/CMakeLists.txt @@ -67,7 +67,7 @@ if(${TRITON_COMMON_ENABLE_PROTOBUF}) proto-library PRIVATE $<$,$,$>: -Wall -Wextra -Wno-unused-parameter -Werror> - $<$:/W0 /D_WIN32_WINNT=0x0A00 /EHsc> + $<$:/W0 /D_WIN32_WINNT=0x0A00 /EHsc /Zc:preprocessor> ) set_target_properties( @@ -140,7 +140,7 @@ if(${TRITON_COMMON_ENABLE_GRPC}) grpc-service-library PRIVATE $<$,$,$>: -Wall -Wextra -Wno-unused-parameter -Werror> - $<$:/W0 /D_WIN32_WINNT=0x0A00 /EHsc> + $<$:/W0 /D_WIN32_WINNT=0x0A00 /EHsc /Zc:preprocessor> ) set_target_properties( @@ -197,7 +197,7 @@ if(${TRITON_COMMON_ENABLE_GRPC}) grpc-health-library PRIVATE $<$,$,$>: -Wall -Wextra -Wno-unused-parameter -Werror> - $<$:/W0 /D_WIN32_WINNT=0x0A00 /EHsc> + $<$:/W0 /D_WIN32_WINNT=0x0A00 /EHsc /Zc:preprocessor> ) set_target_properties(