Skip to content

Commit 23734af

Browse files
committed
Merge pull request opencv#19443 from asmorkalov:as/guard_nonfree
2 parents b08d67c + 0016c25 commit 23734af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/stitching/test/test_matchers.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
namespace opencv_test { namespace {
4646

47-
#ifdef HAVE_OPENCV_XFEATURES2D
47+
#if defined(HAVE_OPENCV_XFEATURES2D) && defined(OPENCV_ENABLE_NONFREE)
4848

4949
TEST(SurfFeaturesFinder, CanFindInROIs)
5050
{
@@ -74,7 +74,7 @@ TEST(SurfFeaturesFinder, CanFindInROIs)
7474
ASSERT_EQ(bad_count, 0);
7575
}
7676

77-
#endif // HAVE_OPENCV_XFEATURES2D
77+
#endif // HAVE_OPENCV_XFEATURES2D && OPENCV_ENABLE_NONFREE
7878

7979
TEST(ParallelFeaturesFinder, IsSameWithSerial)
8080
{

0 commit comments

Comments
 (0)