1
0
Fork 0

meson: fix option name lookup in build file

This commit is contained in:
Ryan Lucia 2019-02-17 12:27:06 -05:00
parent 9e284660b1
commit 2eaf9b0062
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')