meson: fix fnmatch dependency lookup
The previous version didn't really make sense whatsoever, also it was unused.
This commit is contained in:
parent
9fc310db63
commit
fd9a798376
|
@ -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')
|
||||
|
|
|
@ -16,6 +16,7 @@ deps_e = [
|
|||
dep_m,
|
||||
dep_dl,
|
||||
dep_execinfo,
|
||||
dep_fnmatch,
|
||||
dep_eina,
|
||||
dep_eet,
|
||||
dep_eeze,
|
||||
|
|
Loading…
Reference in New Issue