From 0016c25b586ada88a810c44d04749fadb2a5dffc Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Tue, 2 Feb 2021 13:24:59 +0300 Subject: [PATCH] Guard non-free usage in stitching as contrib can be built without it. --- modules/stitching/test/test_matchers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/stitching/test/test_matchers.cpp b/modules/stitching/test/test_matchers.cpp index a264c10915..730f541cca 100644 --- a/modules/stitching/test/test_matchers.cpp +++ b/modules/stitching/test/test_matchers.cpp @@ -44,7 +44,7 @@ namespace opencv_test { namespace { -#ifdef HAVE_OPENCV_XFEATURES2D +#if defined(HAVE_OPENCV_XFEATURES2D) && defined(OPENCV_ENABLE_NONFREE) TEST(SurfFeaturesFinder, CanFindInROIs) { @@ -74,7 +74,7 @@ TEST(SurfFeaturesFinder, CanFindInROIs) ASSERT_EQ(bad_count, 0); } -#endif // HAVE_OPENCV_XFEATURES2D +#endif // HAVE_OPENCV_XFEATURES2D && OPENCV_ENABLE_NONFREE TEST(ParallelFeaturesFinder, IsSameWithSerial) {