File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ if (USE_CUDA)
8181 endif ()
8282 endif ()
8383 list (APPEND DEFAULT_COMPILE_OPTIONS
84- /wd4505 # -> disable warning: unreferenced function with internal linkage has been removed (CUDA 13 headers)
8584 /wd4515 # -> disable warning: [Thrust issue] 'detail': namespace uses itself
8685 /wd4996 # -> disable warning: [Thrust issue] 'strerror': This function or variable may be unsafe.
8786 /wd4800 # -> disable warning: [Thrust issue] forcing value to bool 'true' or 'false' (performance warning)
@@ -112,6 +111,9 @@ include(Builds/CMake/TaskingSystemOptions.cmake)
112111
113112# Compile options
114113include (Builds/CMake/CompileOptions.cmake )
114+ if (USE_CUDA AND CMAKE_CXX_COMPILER_ID MATCHES "MSVC" )
115+ list (APPEND DEFAULT_COMPILE_OPTIONS /wd4505)
116+ endif ()
115117
116118# Code coverage - Debug only
117119# NOTE: Code coverage results with an optimized (non-Debug) build may be misleading
You can’t perform that action at this time.
0 commit comments