test cases/linuxlike/12 subprojects in subprojects/meson.build
raw| 1 | project('super', 'c') |
| 2 | |
| 3 | # A will use version 1 of C |
| 4 | a_dep = dependency('a', fallback: ['a', 'a_dep']) |
| 5 | |
| 6 | # B has an optional dependency on C version 2 and will therefore work |
| 7 | b_dep = dependency('b', fallback: ['b', 'b_dep']) |
| 8 | |
| 9 | main = executable('main', files('main.c'), dependencies: [a_dep, b_dep]) |