meson: tllist: try subproject first, then fallback to system dependency

This commit is contained in:
Daniel Eklöf 2019-12-01 13:40:19 +01:00
parent 9f91760886
commit 3c939f76e3
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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',