From be79f74c4df7773d65a7e7c69801884172280359 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Tue, 31 Jul 2018 23:32:42 +0530 Subject: [PATCH] meson: Fix build with x11 dependency is disabled gtk_x11_dep is used unconditionally in tests/icles/meson.build --- meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meson.build b/meson.build index 4393440fa0..9198b6d4ee 100644 --- a/meson.build +++ b/meson.build @@ -222,6 +222,8 @@ gtk_dep = dependency('gtk+-3.0', version : '>= 3.10', required : get_option('exa # TODO: https://github.com/mesonbuild/meson/issues/3941 if not get_option('x11').disabled() gtk_x11_dep = dependency('gtk+-x11-3.0', version : '>= 3.10', required : get_option('examples')) +else + gtk_x11_dep = dependency('', required : false) endif # gtk+ quartz backend is only available on macOS if host_system == 'darwin'