Skip to content

Commit

Permalink
build: use has_headers in find_library()
Browse files Browse the repository at this point in the history
This allows to make sure the library's header files are available.
  • Loading branch information
emersion committed Apr 18, 2021
1 parent 47f9e1c commit af7cdec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ rt = cc.find_library('rt')
pipewire = dependency('libpipewire-0.3', version: '>= 0.3.2')
wayland_client = dependency('wayland-client')
wayland_protos = dependency('wayland-protocols', version: '>=1.14')
iniparser = cc.find_library('iniparser')
iniparser = cc.find_library('iniparser', has_headers: ['iniparser.h', 'dictionary.h'])

epoll = dependency('', required: false)
if (not cc.has_function('timerfd_create', prefix: '#include <sys/timerfd.h>') or
Expand Down

0 comments on commit af7cdec

Please sign in to comment.