From 64844a8937733eb0b5e47f82093db4248affa28c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 1 Dec 2019 16:07:56 +0100 Subject: [PATCH] meson: tllist/fcft: use system dependency first, fallback to subprojects --- meson.build | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/meson.build b/meson.build index a46497b..74a210b 100644 --- a/meson.build +++ b/meson.build @@ -55,19 +55,8 @@ if backend_x11 install_headers('xcb.h', subdir: 'yambar') endif -tllist_proj = subproject('tllist', required: false) -if tllist_proj.found() - tllist = tllist_proj.get_variable('tllist') -else - tllist = dependency('tllist') -endif - -fcft_proj = subproject('fcft', required: false) -if fcft_proj.found() - fcft = fcft_proj.get_variable('fcft') -else - fcft = dependency('fcft') -endif +tllist = dependency('tllist', fallback: ['tllist', 'tllist']) +fcft = dependency('fcft', fallback: ['fcft', 'fcft']) subdir('completions') subdir('doc')