diff --git a/meson.build b/meson.build index 9c9b7ace7..7f7995b88 100644 --- a/meson.build +++ b/meson.build @@ -72,7 +72,7 @@ foreach dep: [ d = dependency(dep[0], version: dep[1] != '' ? dep[1]: '>=0', required: false) - optname = 'enable_@0@'.format(dep[0].split('-')[0]) + optname = dep[0].split('-')[0] if d.found() and not get_option(optname).disabled() deps += d conf.set('WITH_@0@'.format(dep[0].split('-')[0].to_upper()), '1')