meson: fix fnmatch dependency lookup

The previous version didn't really make sense whatsoever, also
it was unused.
This commit is contained in:
q66 2020-06-11 02:43:14 +02:00
parent 9fc310db63
commit fd9a798376
2 changed files with 2 additions and 3 deletions

View File

@ -205,9 +205,7 @@ if cc.has_header('fnmatch.h') == false
error('fnmatch.h not found')
endif
if cc.has_function('fnmatch') == false
dep_fnmatch = dependency('fnmatch', required: true)
endif
dep_fnmatch = cc.find_library('fnmatch', required: false)
add_global_arguments('-DPACKAGE_BIN_DIR="@0@"'.format(dir_bin), language: 'c')
add_global_arguments('-DPACKAGE_LIB_DIR="@0@"'.format(dir_lib), language: 'c')

View File

@ -16,6 +16,7 @@ deps_e = [
dep_m,
dep_dl,
dep_execinfo,
dep_fnmatch,
dep_eina,
dep_eet,
dep_eeze,