From 1313d8a570ce7d7a3e17c96bc1a149f9c484faf4 Mon Sep 17 00:00:00 2001 From: Anatoly Baksheev Date: Sat, 5 May 2012 09:43:18 +0000 Subject: [PATCH] added check for CMake 2.8.3 for CUDA support --- cmake/OpenCVDetectCUDA.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/OpenCVDetectCUDA.cmake b/cmake/OpenCVDetectCUDA.cmake index d31d1248bf..84b95a4300 100644 --- a/cmake/OpenCVDetectCUDA.cmake +++ b/cmake/OpenCVDetectCUDA.cmake @@ -1,3 +1,8 @@ +if(${CMAKE_VERSION} VERSION_LESS "2.8.3") + message(STATUS WITH_CUDA flag requires CMake 2.8.3. CUDA support is disabled.) + return() +endif() + find_package(CUDA 4.1) if(CUDA_FOUND)