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

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())