projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
854902b
)
Added host compiler check before CUDA detection. For not supported compilers CUDA...
author
Anatoly Baksheev
<no@email>
Fri, 21 Sep 2012 13:42:37 +0000
(17:42 +0400)
committer
Anatoly Baksheev
<no@email>
Mon, 24 Sep 2012 12:56:19 +0000
(16:56 +0400)
cmake/OpenCVDetectCUDA.cmake
patch
|
blob
|
history
diff --git
a/cmake/OpenCVDetectCUDA.cmake
b/cmake/OpenCVDetectCUDA.cmake
index
aa33fe1
..
9b3fcd1
100644
(file)
--- a/
cmake/OpenCVDetectCUDA.cmake
+++ b/
cmake/OpenCVDetectCUDA.cmake
@@
-3,6
+3,11
@@
if(${CMAKE_VERSION} VERSION_LESS "2.8.3")
return()
endif()
+if (NOT MSVC AND NOT CMAKE_COMPILER_IS_GNUCXX OR MINGW)
+ message(STATUS "CUDA compilation was disabled (due to unsuppoted host compiler).")
+ return()
+endif()
+
find_package(CUDA 4.1)
if(CUDA_FOUND)