From 49c653322700ef0e3034912f697cb67eee2e8d94 Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Mon, 21 Oct 2013 17:39:38 +0400 Subject: [PATCH] Move the minimal CUDA version into the minimal version list. --- cmake/OpenCVDetectCUDA.cmake | 2 +- cmake/OpenCVMinDepVersions.cmake | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/OpenCVDetectCUDA.cmake b/cmake/OpenCVDetectCUDA.cmake index 076da108f7..7099b1b917 100644 --- a/cmake/OpenCVDetectCUDA.cmake +++ b/cmake/OpenCVDetectCUDA.cmake @@ -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) diff --git a/cmake/OpenCVMinDepVersions.cmake b/cmake/OpenCVMinDepVersions.cmake index b659a83794..a9bede4024 100644 --- a/cmake/OpenCVMinDepVersions.cmake +++ b/cmake/OpenCVMinDepVersions.cmake @@ -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)