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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user