moved finding CUDA_npp_LIBRARY to OpenCVDetectCUDA.cmake

pull/13383/head
Vladislav Vinogradov 13 years ago
parent 62591a1d5a
commit 6f7e3434ca
  1. 3
      cmake/OpenCVDetectCUDA.cmake
  2. 2
      modules/gpu/CMakeLists.txt

@ -64,6 +64,9 @@ if(CUDA_FOUND)
message(STATUS "CUDA NVCC target flags: ${CUDA_NVCC_FLAGS}") message(STATUS "CUDA NVCC target flags: ${CUDA_NVCC_FLAGS}")
unset(CUDA_npp_LIBRARY CACHE)
find_cuda_helper_libs(npp)
macro(OCV_CUDA_COMPILE VAR) macro(OCV_CUDA_COMPILE VAR)
if (BUILD_SHARED_LIBS) if (BUILD_SHARED_LIBS)
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -Xcompiler -DCVAPI_EXPORTS) set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -Xcompiler -DCVAPI_EXPORTS)

@ -50,8 +50,6 @@ if (HAVE_CUDA)
OCV_CUDA_COMPILE(cuda_objs ${lib_cuda} ${ncv_cuda}) OCV_CUDA_COMPILE(cuda_objs ${lib_cuda} ${ncv_cuda})
#CUDA_BUILD_CLEAN_TARGET() #CUDA_BUILD_CLEAN_TARGET()
unset(CUDA_npp_LIBRARY CACHE)
find_cuda_helper_libs(npp)
set(cuda_link_libs ${CUDA_LIBRARIES} ${CUDA_npp_LIBRARY}) set(cuda_link_libs ${CUDA_LIBRARIES} ${CUDA_npp_LIBRARY})
else() else()
set(lib_cuda "") set(lib_cuda "")

Loading…
Cancel
Save