meson.build 291 B

123456789101112
  1. project('subdir if found', 'c')
  2. found_dep = declare_dependency()
  3. not_found_dep = dependency('nonexisting', required : false)
  4. subdir('nonexisting_dir', if_found : not_found_dep)
  5. variable = 3
  6. subdir('subdir', if_found : found_dep)
  7. assert(variable == 5, 'Subdir was not properly entered.')