From 33ab236ed3d34284374e8b2741ceedf19664edbf Mon Sep 17 00:00:00 2001 From: Julien Dubiel Date: Tue, 21 Jun 2016 20:00:50 +0200 Subject: [PATCH] Use CMAKE_LIBRARY_PATH_FLAG variable instead of -L. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 11a64080ca..5066246b1f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -659,7 +659,7 @@ if(HAVE_CUDA) 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}) + set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} ${CMAKE_LIBRARY_PATH_FLAG}${p}) endforeach() endif() # ----------------------------------------------------------------------------