From faf36aa95b377b2a4d93f9a8f97c10cd6f4f735b Mon Sep 17 00:00:00 2001 From: CSBVision Date: Mon, 16 Mar 2026 11:28:56 +0100 Subject: [PATCH] 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. --- cmake/OpenCVDetectCUDAUtils.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/OpenCVDetectCUDAUtils.cmake b/cmake/OpenCVDetectCUDAUtils.cmake index fdd65ef6c3..8d2c87b443 100644 --- a/cmake/OpenCVDetectCUDAUtils.cmake +++ b/cmake/OpenCVDetectCUDAUtils.cmake @@ -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")