blob: b418088cb53187c393f54066761fa6b7cb182371 (
plain)
1
2
3
4
5
6
7
8
9
10
|
project('dependency fallbacks')
# pkg-config has 'libpng' but cmake has 'png' and we have a 'png' subproject
# for platforms that have neither.
d = dependency('libpng', 'png', 'foo')
assert(d.found())
# Check that dependency 'foo' has been implicitly overridden.
d = dependency('foo')
assert(d.found())
|