Skip to content

Commit

Permalink
Use compliant preprocessor (#6626)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmayv25 authored Nov 22, 2023
1 parent 18ee5ac commit 92214f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
target_compile_options(
main
PRIVATE
/W1 /D_WIN32_WINNT=0x0A00 /EHsc
/W1 /D_WIN32_WINNT=0x0A00 /EHsc /Zc:preprocessor
)
target_compile_definitions(main
PRIVATE
Expand Down Expand Up @@ -358,7 +358,7 @@ if(${TRITON_ENABLE_HTTP}
target_compile_options(
http-endpoint-library
PRIVATE
/W1 /D_WIN32_WINNT=0x0A00 /EHsc
/W1 /D_WIN32_WINNT=0x0A00 /EHsc /Zc:preprocessor
)
else()
target_compile_options(
Expand Down Expand Up @@ -600,7 +600,7 @@ if (NOT WIN32)
target_compile_options(
simple
PRIVATE
/W1 /D_WIN32_WINNT=0x0A00 /EHsc
/W1 /D_WIN32_WINNT=0x0A00 /EHsc /Zc:preprocessor
)
else()
target_compile_options(
Expand Down Expand Up @@ -664,7 +664,7 @@ if (NOT WIN32)
target_compile_options(
multi_server
PRIVATE
/W1 /D_WIN32_WINNT=0x0A00 /EHsc
/W1 /D_WIN32_WINNT=0x0A00 /EHsc /Zc:preprocessor
)
else()
target_compile_options(
Expand Down Expand Up @@ -729,7 +729,7 @@ if (NOT WIN32)
target_compile_options(
memory_alloc
PRIVATE
/W1 /D_WIN32_WINNT=0x0A00 /EHsc
/W1 /D_WIN32_WINNT=0x0A00 /EHsc /Zc:preprocessor
)
else()
target_compile_options(
Expand Down
2 changes: 1 addition & 1 deletion src/grpc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
target_compile_options(
grpc-endpoint-library
PRIVATE
/W1 /D_WIN32_WINNT=0x0A00 /EHsc
/W1 /D_WIN32_WINNT=0x0A00 /EHsc /Zc:preprocessor
)
else()
target_compile_options(
Expand Down

0 comments on commit 92214f7

Please sign in to comment.