diff --git a/modules/gpu/test/test_labeling.cpp b/modules/gpu/test/test_labeling.cpp index 69c076827..bba26ad14 100644 --- a/modules/gpu/test/test_labeling.cpp +++ b/modules/gpu/test/test_labeling.cpp @@ -43,6 +43,8 @@ #include #include +#ifdef HAVE_CUDA + namespace { struct GreedyLabeling @@ -198,4 +200,6 @@ TEST_P(Labeling, ConnectedComponents) // cv::waitKey(0); } -INSTANTIATE_TEST_CASE_P(ConnectedComponents, Labeling, ALL_DEVICES); \ No newline at end of file +INSTANTIATE_TEST_CASE_P(ConnectedComponents, Labeling, ALL_DEVICES); + +#endif \ No newline at end of file