From 256dcde149737246a04cfc0fe388cb91acb65522 Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Mon, 21 Feb 2022 00:07:03 -0700 Subject: [PATCH] [meson] handle multiple element ICU DEFS --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index e22859a26..27cd3daa9 100644 --- a/meson.build +++ b/meson.build @@ -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