From 06e79311c5bd6e3a395df4e1661f32f2e9f30a17 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Wed, 2 Mar 2022 23:11:09 +0530 Subject: [PATCH] soup: Don't error out in static build unless option is enabled Part-of: --- subprojects/gst-plugins-good/ext/soup/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-good/ext/soup/meson.build b/subprojects/gst-plugins-good/ext/soup/meson.build index 79df6b168b..bba7c947af 100644 --- a/subprojects/gst-plugins-good/ext/soup/meson.build +++ b/subprojects/gst-plugins-good/ext/soup/meson.build @@ -26,7 +26,9 @@ if get_option('default_library') == 'static' libsoup3_dep = dependency('libsoup-3.0', required : false, fallback : ['libsoup3', 'libsoup_dep']) if not libsoup2_dep.found() and not libsoup3_dep.found() - error('Either libsoup2 or libsoup3 is needed') + if soup_opt.enabled() + error('Either libsoup2 or libsoup3 is needed') + endif subdir_done() endif if libsoup3_dep.found()