The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
291 B
12 lines
291 B
5 years ago
|
project('subdir if found', 'c')
|
||
|
|
||
|
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.')
|