summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meson.build6
1 files changed, 5 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 2e08d9d660..5b181e45d7 100644
--- a/meson.build
+++ b/meson.build
@@ -1088,7 +1088,11 @@ if x11['use']
'video/out/x11_common.c')
endif
-xv = dependency('xv', required: get_option('xv'))
+xv_opt = get_option('xv').require(
+ x11['use'],
+ error_message: 'x11 could not be found!',
+)
+xv = dependency('xv', required: xv_opt)
if xv.found()
dependencies += xv
features += 'xv'