diff --git a/CMakeLists.txt b/CMakeLists.txt index 665ffe3d6..4a34fc65b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -540,6 +540,9 @@ if(HAVE_CUDA AND NOT ENABLE_DYNAMIC_CUDA) if(HAVE_CUFFT) set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} ${CUDA_cufft_LIBRARY}) endif() + foreach(p ${CUDA_LIBS_PATH}) + set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} -L${p}) + endforeach() endif() # ----------------------------------------------------------------------------