meson: fix fnmatch dependency lookup

The previous version didn't really make sense whatsoever, also
it was unused.
devs/bu5hm4n/recognition
q66 2 years ago
parent 9fc310db63
commit fd9a798376
  1. 4
      meson.build
  2. 1
      src/bin/meson.build

@ -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…
Cancel
Save