[meson] handle multiple element ICU DEFS

This commit is contained in:
James Hilliard 2022-02-21 00:07:03 -07:00
parent d4cb07728c
commit 256dcde149
1 changed files with 2 additions and 2 deletions

View File

@ -105,8 +105,8 @@ else
endif
if icu_dep.found() and icu_dep.type_name() == 'pkgconfig'
icu_defs = icu_dep.get_variable(pkgconfig: 'DEFS', default_value: '')
if icu_defs != ''
icu_defs = icu_dep.get_variable(pkgconfig: 'DEFS', default_value: '').split()
if icu_defs.length() > 0
add_project_arguments(icu_defs, language: ['c', 'cpp'])
endif
endif