blob: 05be94fba6a066ee2ae44a4bf00d881623bd9c99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
project('subdir if found')
found_dep = declare_dependency()
not_found_dep = dependency('nonexisting', required : false)
subdir('nonexisting_dir', if_found : not_found_dep)
variable = 3
subdir('subdir', if_found : found_dep)
assert(variable == 5, 'Subdir was not properly entered.')
|