Build fix for systems without libev in pkg-config
This commit is contained in:
parent
d433e05877
commit
5342185370
1 changed files with 5 additions and 1 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue