Skip to content

Commit e174c7c

Browse files
utilForeverCopilot
andcommitted
build: add /wd4505 for MSVC CUDA builds
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0a59a2f commit e174c7c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
114113
include(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

0 commit comments

Comments
 (0)