openexr: Fix compilation with OpenEXR 2.4
It uses modern C++; adding -std=c++98 breaks the build.
This commit is contained in:
parent
b0543d6ea5
commit
5dd3e35fb5
@ -1,11 +1,16 @@
|
|||||||
openexr_dep = dependency('OpenEXR', required: get_option('openexr'))
|
openexr_dep = dependency('OpenEXR', required: get_option('openexr'))
|
||||||
if openexr_dep.found()
|
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 = library('gstopenexr',
|
||||||
'gstopenexr.c',
|
'gstopenexr.c',
|
||||||
'gstopenexrdec.cpp',
|
'gstopenexrdec.cpp',
|
||||||
c_args: gst_plugins_bad_args,
|
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,
|
link_args: noseh_link_args,
|
||||||
include_directories: [configinc, libsinc],
|
include_directories: [configinc, libsinc],
|
||||||
dependencies: [gstvideo_dep, openexr_dep],
|
dependencies: [gstvideo_dep, openexr_dep],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user