meson.build: use dependency() & cc.find_library() to find intl

This commit is contained in:
Boris Faure 2021-09-20 20:26:53 +02:00
parent 280b8c143f
commit a6b654ea83
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
1 changed files with 3 additions and 1 deletions

View File

@ -65,7 +65,9 @@ edj_files = []
if get_option('nls') == true
subdir('po')
terminology_dependencies += dependency('intl', required: true)
# 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)
endif
foreach efl_dep: efl_deps