From 10459a886bb0a1970e82f1cd14b864c22d4aad12 Mon Sep 17 00:00:00 2001 From: Anatoly Baksheev Date: Fri, 4 May 2012 10:34:57 +0000 Subject: [PATCH] Added check for CUDA toolkit version ( older can't compile Kepler ) --- cmake/OpenCVDetectCUDA.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/OpenCVDetectCUDA.cmake b/cmake/OpenCVDetectCUDA.cmake index b5cb19458..d31d1248b 100644 --- a/cmake/OpenCVDetectCUDA.cmake +++ b/cmake/OpenCVDetectCUDA.cmake @@ -13,7 +13,7 @@ if(CUDA_FOUND) message(STATUS "CUDA detected: " ${CUDA_VERSION}) - if("CUDA_VERSION_STRING" VERSION_GREATER "4.1") + if(${CUDA_VERSION_STRING} VERSION_GREATER "4.1") set(CUDA_ARCH_BIN "1.1 1.2 1.3 2.0 2.1(2.0) 3.0" CACHE STRING "Specify 'real' GPU architectures to build binaries for, BIN(PTX) format is supported") else() set(CUDA_ARCH_BIN "1.1 1.2 1.3 2.0 2.1(2.0)" CACHE STRING "Specify 'real' GPU architectures to build binaries for, BIN(PTX) format is supported")