test cases/linuxlike/12 subprojects in subprojects/subprojects/b/meson.build
raw| 1 | project('b', 'c') |
| 2 | |
| 3 | c_dep = dependency('c', version:'2', fallback: ['c', 'c_dep'], required: false) |
| 4 | |
| 5 | assert(c_dep.found() == false, 'C project has the wrong version and should not be found') |
| 6 | |
| 7 | if c_dep.found() |
| 8 | add_global_arguments('-DWITH_C', language: 'c') |
| 9 | endif |
| 10 | |
| 11 | blib = library('b', 'b.c', |
| 12 | dependencies: c_dep) |
| 13 | |
| 14 | b_dep = declare_dependency( |
| 15 | link_with: blib, |
| 16 | include_directories: include_directories('.'), |
| 17 | ) |