mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-08-03 18:26:11 -04:00
Merge pull request #1124 from kiwix/better-libzim-version-check
Better check libzim version
This commit is contained in:
commit
3d95b386c6
2
debian/control
vendored
2
debian/control
vendored
@ -23,7 +23,7 @@ Section: libdevel
|
|||||||
Architecture: any
|
Architecture: any
|
||||||
Multi-Arch: same
|
Multi-Arch: same
|
||||||
Depends: libkiwix14 (= ${binary:Version}), ${misc:Depends}, python3,
|
Depends: libkiwix14 (= ${binary:Version}), ${misc:Depends}, python3,
|
||||||
libzim-dev (>= 9.0.0~),
|
libzim-dev (>= 9.0.0), libzim-dev (<< 10.0.0),
|
||||||
libicu-dev,
|
libicu-dev,
|
||||||
libpugixml-dev,
|
libpugixml-dev,
|
||||||
libcurl4-gnutls-dev,
|
libcurl4-gnutls-dev,
|
||||||
|
@ -35,7 +35,9 @@ else
|
|||||||
error('Cannot found header mustache.hpp')
|
error('Cannot found header mustache.hpp')
|
||||||
endif
|
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)
|
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.')
|
error('Libzim seems to be compiled without xapian. Xapian support is mandatory.')
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user