fixing conditional compilation
authorAndrey Pavlenko <andrey.pavlenko@itseez.com>
Tue, 25 Mar 2014 09:16:42 +0000 (13:16 +0400)
committerAndrey Pavlenko <andrey.pavlenko@itseez.com>
Tue, 25 Mar 2014 09:16:42 +0000 (13:16 +0400)
modules/nonfree/perf/perf_main.cpp

index 4959411..9a87720 100644 (file)
@@ -33,7 +33,9 @@ int main(int argc, char **argv)
     ::perf::TestBase::setPerformanceStrategy(::perf::PERF_STRATEGY_SIMPLE);
 #if defined(HAVE_CUDA)
     CV_PERF_TEST_MAIN_INTERNALS(nonfree, impls, perf::printCudaInfo());
-#else if defined(HAVE_OPENCL)
+#elif defined(HAVE_OPENCL)
     CV_PERF_TEST_MAIN_INTERNALS(nonfree, impls, dumpOpenCLDevice());
+#else
+    CV_PERF_TEST_MAIN_INTERNALS(ocl, impls)
 #endif
 }