Better check libzim version

This commit is contained in:
Emmanuel Engelhart
2024-09-07 15:26:21 +02:00
parent 801b1df304
commit a3f5a654f2
2 changed files with 4 additions and 2 deletions

View File

@@ -35,7 +35,9 @@ else
error('Cannot found header mustache.hpp')
endif
libzim_dep = dependency('libzim', version : '>=9.0.0', static:static_deps)
libzim_dep = dependency('libzim', version:'>=9.0.0', static:static_deps)
libzim_dep = dependency('libzim', version:'<10.0.0', static:static_deps)
if not compiler.has_header_symbol('zim/zim.h', 'LIBZIM_WITH_XAPIAN', dependencies: libzim_dep)
error('Libzim seems to be compiled without xapian. Xapian support is mandatory.')
endif