Merge pull request #1714 from jet47:find-cuda-fix

This commit is contained in:
Roman Donchenko 2013-10-30 13:27:40 +04:00 committed by OpenCV Buildbot
commit 8a4f1bbbdf

View File

@ -15,7 +15,11 @@ endif()
set(CMAKE_MODULE_PATH "${OpenCV_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
find_host_package(CUDA 4.2 QUIET)
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE NEVER)
find_package(CUDA 4.2 QUIET)
if(CUDA_FOUND)
set(HAVE_CUDA 1)