From 8fd8d42a6ef9a4589776260e539f10d730e1c3f1 Mon Sep 17 00:00:00 2001 From: Jeff Davis Date: Wed, 22 Feb 2023 10:24:52 -0800 Subject: [PATCH v1] Allow meson to find ICU in non-standard locations. --- meson.build | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index f534704452..250840b281 100644 --- a/meson.build +++ b/meson.build @@ -721,8 +721,11 @@ endif icuopt = get_option('icu') if not icuopt.disabled() - icu = dependency('icu-uc', required: icuopt.enabled()) - icu_i18n = dependency('icu-i18n', required: icuopt.enabled()) + + icu = cc.find_library('icuuc', required: icuopt.enabled(), + dirs: postgres_lib_d, header_include_directories: postgres_inc) + icu_i18n = cc.find_library('icui18n', required: icuopt.enabled(), + dirs: postgres_lib_d, header_include_directories: postgres_inc) if icu.found() cdata.set('USE_ICU', 1) -- 2.34.1