diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-12-01 12:40:19 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-12-01 12:40:19 +0000 |
| commit | 3c939f76e3b094d0d749d508e6809c20afabde76 (patch) | |
| tree | f725ee5eb9ec412a561b4b3dc61d9e58047e991a | |
| parent | tllist: add git submodule directly under subprojects (diff) | |
meson: tllist: try subproject first, then fallback to system dependency
| -rw-r--r-- | meson.build | 7 |
1 files changed, 6 insertions, 1 deletions
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', |
