summaryrefslogtreecommitdiff
blob: d7ff3c7eaf67db6423bccbea3d91310f8176cd09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -528,6 +528,9 @@
   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()
 
 # ----------------------------------------------------------------------------