meson: add new iconv dependency evaluation arg

This commit is contained in:
Dmitri Chudinov 2023-12-05 17:41:37 +05:00
parent 9f974d5eae
commit 44b009c129
Signed by: dimmus
GPG Key ID: D4AED7D0CD0B767C
1 changed files with 5 additions and 1 deletions

View File

@ -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