Merge pull request #3459 from jameshilliard/icu-defs-mutliarg

[meson] handle multiple element ICU DEFS
This commit is contained in:
Khaled Hosny 2022-02-21 18:21:03 +02:00 committed by GitHub
commit 78f3d7f0a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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