Blame SOURCES/0001-examples-only-check-opencv_dep-if-option-is-not-disa.patch

29729f
From 9815fd1e2ab13f765b75b39e3764fe1e860cb251 Mon Sep 17 00:00:00 2001
29729f
From: Adam Williamson <awilliam@redhat.com>
29729f
Date: Thu, 10 Sep 2020 10:35:11 -0700
29729f
Subject: [PATCH] examples: only check opencv_dep if option is not disabled
29729f
 (#1406)
29729f
29729f
We can't check opencv_dep if the option is disabled because it's
29729f
never initialized in that case, since 833a65cc .
29729f
29729f
Signed-off-by: Adam Williamson <awilliam@redhat.com>
29729f
---
29729f
 tests/examples/meson.build | 4 +++-
29729f
 1 file changed, 3 insertions(+), 1 deletion(-)
29729f
29729f
diff --git a/tests/examples/meson.build b/tests/examples/meson.build
29729f
index 2eba1d47e..a41fc1679 100644
29729f
--- a/tests/examples/meson.build
29729f
+++ b/tests/examples/meson.build
29729f
@@ -9,7 +9,9 @@ subdir('mpegts')
29729f
 subdir('msdk')
29729f
 subdir('mxf')
29729f
 subdir('nvcodec')
29729f
-subdir('opencv', if_found: opencv_dep)
29729f
+if not get_option('opencv').disabled()
29729f
+    subdir('opencv', if_found: opencv_dep)
29729f
+endif
29729f
 subdir('uvch264')
29729f
 subdir('va')
29729f
 subdir('waylandsink')
29729f
-- 
29729f
2.28.0
29729f