From ffea6475d4a83684c40db5b7a9f667a11e486c2b Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Thu, 24 Mar 2022 15:19:27 +0800 Subject: [PATCH] openexr: Specify modules when finding OpenEXR. Specify modules to look for OpenEXR when CMake is used, as we may have CMake config files instead of pkg-config files that result from building OpenEXR, which may be built with CMake which is typically the case on Visual Studio builds. In this case, Meson does seem to find the 'OpenEXR' package with CMake after trying pkg-config, but does not consider it enough without the 'modules:' argument. Part-of: --- subprojects/gst-plugins-bad/ext/openexr/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/ext/openexr/meson.build b/subprojects/gst-plugins-bad/ext/openexr/meson.build index bddac7509a..7423dcfd38 100644 --- a/subprojects/gst-plugins-bad/ext/openexr/meson.build +++ b/subprojects/gst-plugins-bad/ext/openexr/meson.build @@ -1,4 +1,5 @@ -openexr_dep = dependency('OpenEXR', required: get_option('openexr')) +openexr_dep = dependency('OpenEXR', modules: ['OpenEXR::IlmImf'], required: get_option('openexr')) + if openexr_dep.found() openexr_override_options = [] # Older versions of openexr fail to build with -Werror when using GCC >= 9.2