# Get the subproject object first opat_sub = subproject( 'opat-core', default_options: { 'generate_pc': false } ) # Get the dependency variable from that subproject opatio_dep = opat_sub.get_variable('opatio_dep')