Fix up update-orc-dist target for the case where there are no orc targets
authorTim-Philipp Müller <tim@centricular.com>
Wed, 8 Jul 2020 10:28:19 +0000 (11:28 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 8 Jul 2020 10:29:40 +0000 (11:29 +0100)
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>

meson.build

index b53a884..aaf19f4 100644 (file)
@@ -305,6 +305,6 @@ run_target('git-update', command : [update])
 run_target('update', command : [update,
     '--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)
 endif