blob: 2c640cfad85e7a8dbe904b5ed7135c5e6e1f0ea4 [file] [log] [blame]
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.')