diff --git a/CMakeLists.txt b/CMakeLists.txt index d6cd3d9..b19081c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -151,7 +151,7 @@ target_compile_options( PRIVATE $<$,$,$>: -Wall -Wextra -Wno-unused-parameter -Werror> - $<$:/Wall /D_WIN32_WINNT=0x0A00 /EHsc> + $<$:/Wall /D_WIN32_WINNT=0x0A00 /EHsc /Zc:preprocessor> ) # TRITON_ENABLE_GPU exposed in header so set PUBLIC diff --git a/examples/backends/minimal/CMakeLists.txt b/examples/backends/minimal/CMakeLists.txt index 22ea192..ab3ebd5 100644 --- a/examples/backends/minimal/CMakeLists.txt +++ b/examples/backends/minimal/CMakeLists.txt @@ -102,7 +102,7 @@ target_compile_options( triton-minimal-backend PRIVATE $<$,$,$>: -Wall -Wextra -Wno-unused-parameter -Wno-type-limits -Werror> - $<$:/Wall /D_WIN32_WINNT=0x0A00 /EHsc> + $<$:/Wall /D_WIN32_WINNT=0x0A00 /EHsc /Zc:preprocessor> ) target_link_libraries( diff --git a/examples/backends/recommended/CMakeLists.txt b/examples/backends/recommended/CMakeLists.txt index a090b96..26e451a 100644 --- a/examples/backends/recommended/CMakeLists.txt +++ b/examples/backends/recommended/CMakeLists.txt @@ -102,7 +102,7 @@ target_compile_options( triton-recommended-backend PRIVATE $<$,$,$>: -Wall -Wextra -Wno-unused-parameter -Wno-type-limits -Werror> - $<$:/Wall /D_WIN32_WINNT=0x0A00 /EHsc> + $<$:/Wall /D_WIN32_WINNT=0x0A00 /EHsc /Zc:preprocessor> ) target_link_libraries( diff --git a/examples/batching_strategies/single_batching/CMakeLists.txt b/examples/batching_strategies/single_batching/CMakeLists.txt index 9b8b797..6c9ba94 100644 --- a/examples/batching_strategies/single_batching/CMakeLists.txt +++ b/examples/batching_strategies/single_batching/CMakeLists.txt @@ -86,7 +86,7 @@ target_compile_options( triton-single-batching PRIVATE $<$,$,$>: -Wall -Wextra -Wno-unused-parameter -Wno-type-limits -Werror> - $<$:/Wall /D_WIN32_WINNT=0x0A00 /EHsc> + $<$:/Wall /D_WIN32_WINNT=0x0A00 /EHsc /Zc:preprocessor> ) target_link_libraries( diff --git a/examples/batching_strategies/volume_batching/CMakeLists.txt b/examples/batching_strategies/volume_batching/CMakeLists.txt index 38c7174..02eed01 100644 --- a/examples/batching_strategies/volume_batching/CMakeLists.txt +++ b/examples/batching_strategies/volume_batching/CMakeLists.txt @@ -86,7 +86,7 @@ target_compile_options( triton-volume-batching PRIVATE $<$,$,$>: -Wall -Wextra -Wno-unused-parameter -Wno-type-limits -Werror> - $<$:/Wall /D_WIN32_WINNT=0x0A00 /EHsc> + $<$:/Wall /D_WIN32_WINNT=0x0A00 /EHsc /Zc:preprocessor> ) target_link_libraries(