aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/linuxlike/12 subprojects in subprojects/subprojects/b/meson.build
blob: 80903f3b1a0eaa02ccdf7c0681d35259a2536651 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
project('b', 'c')

c_dep = dependency('c', version:'2', fallback: ['c', 'c_dep'], required: false)

assert(c_dep.found() == false, 'C project has the wrong version and should not be found')

if c_dep.found()
    add_global_arguments('-DWITH_C', language: 'c')
endif

blib = library('b', 'b.c',
  dependencies: c_dep)

b_dep = declare_dependency(
  link_with: blib,
  include_directories: include_directories('.'),
)