[meson] handle multiple element ICU DEFS
This commit is contained in:
parent
d4cb07728c
commit
256dcde149
|
@ -105,8 +105,8 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if icu_dep.found() and icu_dep.type_name() == 'pkgconfig'
|
if icu_dep.found() and icu_dep.type_name() == 'pkgconfig'
|
||||||
icu_defs = icu_dep.get_variable(pkgconfig: 'DEFS', default_value: '')
|
icu_defs = icu_dep.get_variable(pkgconfig: 'DEFS', default_value: '').split()
|
||||||
if icu_defs != ''
|
if icu_defs.length() > 0
|
||||||
add_project_arguments(icu_defs, language: ['c', 'cpp'])
|
add_project_arguments(icu_defs, language: ['c', 'cpp'])
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue