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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2014>
This commit is contained in:
Chun-wei Fan 2022-03-24 15:19:27 +08:00 committed by GStreamer Marge Bot
parent 952c1194f3
commit b9f29bfc39

View file

@ -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