mirror of https://github.com/opencv/opencv.git
Turns out, you can't use preprocessor directives inside macro arguments. Who'd have thought?pull/1030/head
parent
51a672ec40
commit
3ea4836a0a
4 changed files with 33 additions and 18 deletions
@ -1,8 +1,11 @@ |
||||
#include "perf_precomp.hpp" |
||||
#include "opencv2/ts/gpu_perf.hpp" |
||||
|
||||
CV_PERF_TEST_MAIN_WITH_IMPLS(nonfree, ( |
||||
static const char * impls[] = { |
||||
#ifdef HAVE_CUDA |
||||
"cuda", |
||||
"cuda", |
||||
#endif |
||||
"plain"), perf::printCudaInfo()) |
||||
"plain" |
||||
}; |
||||
|
||||
CV_PERF_TEST_MAIN_WITH_IMPLS(nonfree, impls, perf::printCudaInfo()) |
||||
|
Loading…
Reference in new issue