From f11b69882808251577938fe8d520de4ad41a896c Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Wed, 29 Sep 2021 21:37:21 +0200 Subject: [PATCH] meson: fix libintl detection Related to D12291 --- meson.build | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 90777742..74158bb1 100644 --- a/meson.build +++ b/meson.build @@ -66,8 +66,12 @@ edj_files = [] if get_option('nls') == true subdir('po') # need both cause libintl may be included in glibc or not - terminology_dependencies += dependency('intl', required: false) - terminology_dependencies += cc.find_library('intl', required: false) + dep = dependency('intl', required: false) + if dep.found() + terminology_dependencies += dep + else + terminology_dependencies += cc.find_library('intl', required: false) + endif endif foreach efl_dep: efl_deps