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")