Build fix for systems without libev in pkg-config

This commit is contained in:
King_DuckZ 2020-08-29 19:32:18 +01:00
parent d433e05877
commit 5342185370

View file

@ -28,7 +28,11 @@ else
sqlitecpp_dep = disabler()
endif
ev_dep = dependency('libev', version: '>=4.31')
cpp_comp = meson.get_compiler('cpp')
ev_dep = dependency('libev', version: '>=4.31', required: false)
if not ev_dep.found()
ev_dep = cpp_comp.find_library('libev', required: true, has_headers: 'ev++.h')
endif
threads_dep = dependency('threads')
boost_dep = dependency('boost')