From 1a53dfbd646c541281def35f83848693303c9c78 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Fri, 22 Jan 2021 19:26:18 +1100 Subject: [PATCH] ldac: also look for the ldac/ldacBT.h header. Otherwise there will be a scenario where the library can be found but not the header and a compilation build error will result Part-of: --- ext/ldac/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/ldac/meson.build b/ext/ldac/meson.build index e79fc9bdee..1f29d881e2 100644 --- a/ext/ldac/meson.build +++ b/ext/ldac/meson.build @@ -4,8 +4,9 @@ ldac_sources = [ ] ldac_dep = cc.find_library('ldacBT_enc', required : get_option('ldac')) +ldac_hdr = cc.has_header('ldac/ldacBT.h', required: get_option('ldac')) -if ldac_dep.found() +if ldac_dep.found() and ldac_hdr gstldac = library('gstldac', ldac_sources, c_args : gst_plugins_bad_args,