From: Anatoly Baksheev Date: Fri, 21 Sep 2012 13:42:37 +0000 (+0400) Subject: Added host compiler check before CUDA detection. For not supported compilers CUDA... X-Git-Tag: accepted/2.0/20130307.220821~364^2~167 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dffba48517857fc033aa511e1ad53dee927652ec;p=profile%2Fivi%2Fopencv.git Added host compiler check before CUDA detection. For not supported compilers CUDA will be disabled. --- diff --git a/cmake/OpenCVDetectCUDA.cmake b/cmake/OpenCVDetectCUDA.cmake index aa33fe1..9b3fcd1 100644 --- 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)