mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 05:06:29 +08:00
fixed NPP library search (it was splitted)
This commit is contained in:
parent
e9c298b784
commit
09a7e86a39
@ -26,6 +26,15 @@ if(CUDA_FOUND)
|
|||||||
set(HAVE_CUBLAS 1)
|
set(HAVE_CUBLAS 1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(${CUDA_VERSION} VERSION_LESS "5.5")
|
||||||
|
find_cuda_helper_libs(npp)
|
||||||
|
else()
|
||||||
|
find_cuda_helper_libs(nppc)
|
||||||
|
find_cuda_helper_libs(nppi)
|
||||||
|
find_cuda_helper_libs(npps)
|
||||||
|
set(CUDA_npp_LIBRARY ${CUDA_nppc_LIBRARY} ${CUDA_nppi_LIBRARY} ${CUDA_npps_LIBRARY})
|
||||||
|
endif()
|
||||||
|
|
||||||
if(WITH_NVCUVID)
|
if(WITH_NVCUVID)
|
||||||
find_cuda_helper_libs(nvcuvid)
|
find_cuda_helper_libs(nvcuvid)
|
||||||
set(HAVE_NVCUVID 1)
|
set(HAVE_NVCUVID 1)
|
||||||
@ -136,8 +145,6 @@ if(CUDA_FOUND)
|
|||||||
|
|
||||||
mark_as_advanced(CUDA_BUILD_CUBIN CUDA_BUILD_EMULATION CUDA_VERBOSE_BUILD CUDA_SDK_ROOT_DIR)
|
mark_as_advanced(CUDA_BUILD_CUBIN CUDA_BUILD_EMULATION CUDA_VERBOSE_BUILD CUDA_SDK_ROOT_DIR)
|
||||||
|
|
||||||
find_cuda_helper_libs(npp)
|
|
||||||
|
|
||||||
macro(ocv_cuda_compile VAR)
|
macro(ocv_cuda_compile VAR)
|
||||||
foreach(var CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_DEBUG)
|
foreach(var CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_DEBUG)
|
||||||
set(${var}_backup_in_cuda_compile_ "${${var}}")
|
set(${var}_backup_in_cuda_compile_ "${${var}}")
|
||||||
|
Loading…
Reference in New Issue
Block a user