diff --git a/ext/openjpeg/meson.build b/ext/openjpeg/meson.build index c3ffbd031d..78bbb4dbc5 100644 --- a/ext/openjpeg/meson.build +++ b/ext/openjpeg/meson.build @@ -10,7 +10,9 @@ if get_option('openjpeg').disabled() subdir_done() endif -openjpeg_dep = dependency('libopenjp2', version : '>=2.2', required : get_option('openjpeg')) +openjpeg_dep = dependency('libopenjp2', version : '>=2.2', + fallback : ['libopenjp2', 'libopenjp2_dep'], + required : get_option('openjpeg')) if openjpeg_dep.found() gstopenjpeg = library('gstopenjpeg',