1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Merge pull request #27735 from cudawarped:cuda_silence_wd4505

[cuda] Silence unreferenced function with internal linkage has been removed warnings in Windows
This commit is contained in:
Alexander Smorkalov
2025-09-08 11:03:04 +03:00
committed by GitHub
+1
View File
@@ -390,6 +390,7 @@ macro(ocv_nvcc_flags)
endif()
if(WIN32)
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -Xcompiler=/wd4505)
if (NOT (CUDA_VERSION VERSION_LESS "11.2"))
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -Xcudafe --display_error_number --diag-suppress 1394,1388)
endif()