summaryrefslogtreecommitdiffstats
path: root/test cases/common/167 subproject nested subproject dirs/meson.build
blob: 875eed350f5dfd43e7f24bf49b5eb1f1d85da22a (plain)
1
2
3
4
5
6
7
8
9
10
11
project('gamma project', 'c', subproject_dir: 'contrib/subprojects')

a = subproject('alpha')
lib = a.get_variable('l')

# Ensure that the dependency version is not checked for a not-found dependency
notfound = dependency('', version : '>=1.0', required : false,
                      fallback : ['beta', 'notfound'])

exe = executable('prog', 'prog.c', link_with : lib)
test('basic', exe)