added check for CMake 2.8.3 for CUDA support

pull/2/head
Anatoly Baksheev 13 years ago
parent bae8a88c53
commit 1313d8a570
  1. 5
      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)

Loading…
Cancel
Save