Use CMAKE_LIBRARY_PATH_FLAG variable instead of -L.

This commit is contained in:
Julien Dubiel 2016-06-21 20:00:50 +02:00
parent be38a524a8
commit 33ab236ed3

View File

@ -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()
# ----------------------------------------------------------------------------