From 3d22dae5f854416939935f7cd913af7c21b4f490 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Thu, 10 Feb 2022 16:30:36 +0800 Subject: [PATCH] meson.build: Only use get_variable() on icu_dep with pkgconfig We might have found ICU via the .lib names, and get_variable() is only available for pkg-config deps. --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 0a7b4c48d..848c5fb2e 100644 --- a/meson.build +++ b/meson.build @@ -129,7 +129,7 @@ if not get_option('icu').disabled() endif endif -if icu_dep.found() +if icu_dep.found() and icu_dep.type_name() == 'pkgconfig' icu_defs = icu_dep.get_variable(pkgconfig: 'DEFS', default_value: '') if icu_defs != '' add_project_arguments(icu_defs, language: ['c', 'cpp'])