# Get the subproject object first opat_sub = subproject('opat-core') # Get the dependency variable from that subproject opatio_dep = opat_sub.get_variable('opatio_dep')