build: Define x11 to an empty dependency if X11 autolaunch is disabled

Otherwise, we can't build successfully for Windows with X11 autolaunch
explicitly disabled.

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2022-06-24 17:53:12 +01:00
parent 78d359dbb6
commit 179669fa7c

View file

@ -501,6 +501,7 @@ endif
if get_option('x11_autolaunch').disabled()
use_x11_autolaunch = false
x11 = not_found
else
if get_option('x11_autolaunch').enabled() and platform_windows
error('X11 autolaunch is not supported on Windows')