]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
build: Define x11 to an empty dependency if X11 autolaunch is disabled
authorSimon McVittie <smcv@collabora.com>
Fri, 24 Jun 2022 16:53:12 +0000 (17:53 +0100)
committerSimon McVittie <smcv@collabora.com>
Wed, 13 Jul 2022 19:36:13 +0000 (20:36 +0100)
Otherwise, we can't build successfully for Windows with X11 autolaunch
explicitly disabled.

Signed-off-by: Simon McVittie <smcv@collabora.com>
meson.build

index 4c3690a2264a23df839ef84dbaf0ab21b1693fa4..937f64381982c905630496158e10a1aeb7732dc3 100644 (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')