From 11cb9ad6318b5dd0a338db7c297969dae7fb0af2 Mon Sep 17 00:00:00 2001 From: Fangzhou Ai <31551580+Fangzhou-Ai@users.noreply.github.com> Date: Mon, 23 Mar 2026 16:31:45 -0400 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 92e580e28..5f0977f7e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,11 @@ endif() set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} --extended-lambda") +if(WIN32) + set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} \ + -Xcompiler=/Zc:preprocessor") +endif() + # Include installation configuration before processing samples include(cmake/InstallSamples.cmake)