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