projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bae8a88
)
added check for CMake 2.8.3 for CUDA support
author
Anatoly Baksheev
<no@email>
Sat, 5 May 2012 09:43:18 +0000
(09:43 +0000)
committer
Anatoly Baksheev
<no@email>
Sat, 5 May 2012 09:43:18 +0000
(09:43 +0000)
cmake/OpenCVDetectCUDA.cmake
patch
|
blob
|
history
diff --git
a/cmake/OpenCVDetectCUDA.cmake
b/cmake/OpenCVDetectCUDA.cmake
index
d31d124
..
84b95a4
100644
(file)
--- 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)