Commit 5605b72e authored by Pekka Paalanen's avatar Pekka Paalanen Committed by Daniel Stone
Browse files

meson: better error for tests missing libX11



Helps people avoid libX11 at the cost of disabling Xwayland support.
Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pq@iki.fi>
parent 91bf16be
......@@ -167,7 +167,11 @@ tests_weston = [
]
if get_option('xwayland')
tests_weston += [ [ 'xwayland', [], dependency('x11') ] ]
d = dependency('x11', required: false)
if not d.found()
error('Xwayland tests require libX11 which was not found. Or, you can use \'-Dxwayland=false\'.')
endif
tests_weston += [ [ 'xwayland', [], d ] ]
endif
tests_weston_plugin = [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment