meson: Fix build with openjpeg>=2.2
2.2 implies HAVE_2_1
This commit is contained in:
parent
a13e8b3efa
commit
df4c6385aa
@ -9,7 +9,7 @@ openjpeg_cargs = []
|
||||
# Check for 2.2, 2.1, then 2.0
|
||||
openjpeg_dep = dependency('libopenjp2', version : '>=2.2', required : false)
|
||||
if openjpeg_dep.found()
|
||||
openjpeg_cargs += ['-DHAVE_OPENJPEG_2_2']
|
||||
openjpeg_cargs += ['-DHAVE_OPENJPEG_2_2', '-DHAVE_OPENJPEG_2_1']
|
||||
else
|
||||
openjpeg_dep = dependency('libopenjp2', version : '>=2.1', required : false)
|
||||
if openjpeg_dep.found()
|
||||
|
Loading…
x
Reference in New Issue
Block a user