meson: fix option name lookup in build file
This commit is contained in:
parent
9e284660b1
commit
2eaf9b0062
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue