summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jsteffens@make.tv>2019-11-02 16:51:09 +0100
committerTim-Philipp Müller <tim@centricular.com>2019-11-04 11:44:51 +0100
commita76d5ac806d6c86e95a59967bf534384f27508ba (patch)
tree486aeb6240706f25e9604b170b93fc4cdc1e6d81
parent0802f83510ae5e4a8527ff1e3bf7c09a25832d63 (diff)
downloadgstreamer-plugins-bad-a76d5ac806d6c86e95a59967bf534384f27508ba.tar.gz
openexr: Fix compilation with OpenEXR 2.4
It uses modern C++; adding -std=c++98 breaks the build.
-rw-r--r--ext/openexr/meson.build9
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/openexr/meson.build b/ext/openexr/meson.build
index 7f4bab750..8fac33042 100644
--- a/ext/openexr/meson.build
+++ b/ext/openexr/meson.build
@@ -1,11 +1,16 @@
openexr_dep = dependency('OpenEXR', required: get_option('openexr'))
if openexr_dep.found()
- openexr_extra_cpp_args = cxx.get_supported_arguments(['-std=c++98'])
+ openexr_cppargs = []
+
+ if openexr_dep.version().version_compare('< 2.4.0')
+ openexr_cppargs += cxx.get_supported_arguments(['-std=c++98'])
+ endif
+
gstopenexr = library('gstopenexr',
'gstopenexr.c',
'gstopenexrdec.cpp',
c_args: gst_plugins_bad_args,
- cpp_args: gst_plugins_bad_args + openexr_extra_cpp_args,
+ cpp_args: gst_plugins_bad_args + openexr_cppargs,
link_args: noseh_link_args,
include_directories: [configinc, libsinc],
dependencies: [gstvideo_dep, openexr_dep],