From 3c939f76e3b094d0d749d508e6809c20afabde76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 1 Dec 2019 13:40:19 +0100 Subject: [PATCH] meson: tllist: try subproject first, then fallback to system dependency --- meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 26c5622d..f97cd609 100644 --- a/meson.build +++ b/meson.build @@ -62,7 +62,12 @@ version = custom_target( output: 'version.h', command: [generate_version_sh, meson.project_version(), '@SOURCE_DIR@', '@OUTPUT@']) -tllist = subproject('tllist').get_variable('tllist') +tllist_proj = subproject('tllist') +if tllist_proj.found() + tllist = tllist_proj.get_variable('tllist') +else + tllist = dependency('tllist') +endif executable( 'foot',