meson: fix option name lookup in build file

This commit is contained in:
Ryan Lucia 2019-02-17 12:27:06 -05:00 committed by odrling
parent cdd2fe6e5f
commit 885f5bb9c2
1 changed files with 1 additions and 1 deletions

View File

@ -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')