Move the minimal CUDA version into the minimal version list.
authorRoman Donchenko <roman.donchenko@itseez.com>
Mon, 21 Oct 2013 13:39:38 +0000 (17:39 +0400)
committerRoman Donchenko <roman.donchenko@itseez.com>
Tue, 22 Oct 2013 10:32:13 +0000 (14:32 +0400)
cmake/OpenCVDetectCUDA.cmake
cmake/OpenCVMinDepVersions.cmake

index 076da10..7099b1b 100644 (file)
@@ -8,7 +8,7 @@ if(CMAKE_COMPILER_IS_GNUCXX AND NOT APPLE AND CMAKE_CXX_COMPILER_ID STREQUAL "Cl
   return()
 endif()
 
-find_package(CUDA 4.2 QUIET)
+find_package(CUDA "${MIN_VER_CUDA}" QUIET)
 
 if(CUDA_FOUND)
   set(HAVE_CUDA 1)
index b659a83..a9bede4 100644 (file)
@@ -1,3 +1,4 @@
 set(MIN_VER_CMAKE 2.8.7)
+set(MIN_VER_CUDA 4.2)
 set(MIN_VER_PYTHON 2.6)
 set(MIN_VER_ZLIB 1.2.3)