aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/232 dependency allow_fallback/meson.build
blob: b189faf128513ebd32f844e34015610660584e7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
project('subproject fallback', 'c')

foob_dep = dependency('foob', allow_fallback: true, required: false)
assert(foob_dep.found())

# Careful!  Once a submodule has been triggered and it has
# overridden the dependency, it sticks.
foob_dep = dependency('foob', allow_fallback: false, required: false)
assert(foob_dep.found())

foob3_dep = dependency('foob3', allow_fallback: false, required: false)
assert(not foob3_dep.found())