1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-21 19:33:03 +04:00

Change file globbing to recursive for CUDA DLLs

With recent releases, the CUDA installation layout changes introduces a `bin\x64` subdirectory. Recursive glob inside `bin` works in either case.
This commit is contained in:
CSBVision
2026-03-16 11:28:56 +01:00
committed by GitHub
parent 2c839967ff
commit faf36aa95b
+1 -1
View File
@@ -439,7 +439,7 @@ endmacro()
macro(ocv_check_cuda_delayed_load cuda_toolkit_root_dir)
if(MSVC AND CUDA_ENABLE_DELAYLOAD)
set(DELAYFLAGS "delayimp.lib")
file(GLOB CUDA_DLLS "${cuda_toolkit_root_dir}/bin/*.dll")
file(GLOB_RECURSE CUDA_DLLS "${cuda_toolkit_root_dir}/bin/*.dll")
foreach(d ${CUDA_DLLS})
cmake_path(GET "d" FILENAME DLL_NAME)
if(NOT ${DLL_NAME} MATCHES "cudart")