Fix up update-orc-dist target for the case where there are no orc targets

See https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/168#note_561914

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/173>
This commit is contained in:
Tim-Philipp Müller 2020-07-08 11:28:19 +01:00
parent 02995c8417
commit 80976dea2c

View file

@ -305,6 +305,6 @@ run_target('git-update', command : [update])
run_target('update', command : [update, run_target('update', command : [update,
'--builddir=@0@'.format(meson.current_build_dir())]) '--builddir=@0@'.format(meson.current_build_dir())])
if orc_subproject.found() if orc_subproject.found() and orc_update_targets.length() > 0
alias_target('update-orc-dist', orc_update_targets) alias_target('update-orc-dist', orc_update_targets)
endif endif