project('proj', 'c') dep1 = declare_dependency() dep2 = declare_dependency() meson.override_dependency('sub', dep1)