From ff56431140e3596d8a9a27952ab4be4a59723bc2 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 3 Mar 2023 15:54:59 +0100 Subject: [PATCH] build: Only require gtk3 dependency if tests are enabled It's only used there, now. Part-of: --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 66122ec40..151170971 100644 --- a/meson.build +++ b/meson.build @@ -146,7 +146,6 @@ if not have_wayland and not have_x11 endif if have_x11_client - gtk3_dep = dependency('gtk+-3.0', version: gtk3_req) gtk4_dep = dependency('gtk4', version: gtk4_req) x11_dep = dependency('x11', version: x11_req) @@ -330,6 +329,8 @@ have_tty_tests = false have_installed_tests = false if have_tests + gtk3_dep = dependency('gtk+-3.0', version: gtk3_req) + have_core_tests = get_option('core_tests') if have_core_tests if not have_wayland