Skip to content

Commit 6bc63f5

Browse files
utilForeverCopilot
andcommitted
build: use conforming preprocessor for MSVC CUDA headers
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 1ed610f commit 6bc63f5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ if (USE_CUDA)
8080
endif()
8181
endif()
8282
list(APPEND DEFAULT_COMPILE_OPTIONS
83+
/Zc:preprocessor # required by CUDA 13 CCCL headers on MSVC
8384
/wd4515 # -> disable warning: [Thrust issue] 'detail': namespace uses itself
8485
/wd4996 # -> disable warning: [Thrust issue] 'strerror': This function or variable may be unsafe.
8586
/wd4800 # -> disable warning: [Thrust issue] forcing value to bool 'true' or 'false' (performance warning)

0 commit comments

Comments
 (0)