From 44b009c129435ec8d51b17d54c414efa6cc6003a Mon Sep 17 00:00:00 2001 From: dimmus Date: Tue, 5 Dec 2023 17:41:37 +0500 Subject: [PATCH] meson: add new iconv dependency evaluation arg --- src/lib/eina/meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/eina/meson.build b/src/lib/eina/meson.build index 2213e6ed15..bbc941279c 100644 --- a/src/lib/eina/meson.build +++ b/src/lib/eina/meson.build @@ -361,7 +361,11 @@ if unwind.found() endif #for the case that the iconv library is not part of libc but rather libiconv or smth. like that -iconv = dependency('iconv', required: false) +if meson.version().version_compare('>=0.60') + iconv = dependency('iconv', method: 'auto') +else + iconv = dependency('iconv', required: false) +endif if iconv.found() == false iconv = cc.find_library('iconv', required: false) endif