Disabled the cuda variant when CUDA is not available.
authorRoman Donchenko <roman.donchenko@itseez.com>
Wed, 19 Jun 2013 15:16:18 +0000 (19:16 +0400)
committerRoman Donchenko <roman.donchenko@itseez.com>
Wed, 19 Jun 2013 15:16:18 +0000 (19:16 +0400)
modules/gpu/perf/perf_main.cpp
modules/nonfree/perf/perf_main.cpp
modules/superres/perf/perf_main.cpp

index f9f3a68..db362af 100644 (file)
@@ -44,4 +44,8 @@
 
 using namespace perf;
 
-CV_PERF_TEST_MAIN_WITH_IMPLS(gpu, ("cuda", "plain"), printCudaInfo())
+CV_PERF_TEST_MAIN_WITH_IMPLS(gpu, (
+#ifdef HAVE_CUDA
+                                   "cuda",
+#endif
+                                   "plain"), printCudaInfo())
index 373e08a..a324518 100644 (file)
@@ -1,4 +1,8 @@
 #include "perf_precomp.hpp"
 #include "opencv2/ts/gpu_perf.hpp"
 
-CV_PERF_TEST_MAIN_WITH_IMPLS(nonfree, ("cuda", "plain"), perf::printCudaInfo())
+CV_PERF_TEST_MAIN_WITH_IMPLS(nonfree, (
+#ifdef HAVE_CUDA
+                                       "cuda",
+#endif
+                                       "plain"), perf::printCudaInfo())
index 90a7f51..8bf217e 100644 (file)
@@ -44,4 +44,8 @@
 
 using namespace perf;
 
-CV_PERF_TEST_MAIN_WITH_IMPLS(superres, ("cuda", "plain"), printCudaInfo())
+CV_PERF_TEST_MAIN_WITH_IMPLS(superres, (
+#ifdef HAVE_CUDA
+                                        "cuda",
+#endif
+                                        "plain"), printCudaInfo())