mirror of https://github.com/kiwix/libkiwix.git
Support building against packaged libkainjow-mustache
The Debian/Ubuntu package for mustache.hpp installs it to /usr/include/kainjow/mustache.hpp. Have meson look for it in that include directory as well before erroring out. Fixes #318.
This commit is contained in:
parent
14af7b756e
commit
af9afab821
|
@ -25,7 +25,11 @@ pugixml_dep = dependency('pugixml', static:static_deps)
|
||||||
libcurl_dep = dependency('libcurl', static:static_deps)
|
libcurl_dep = dependency('libcurl', static:static_deps)
|
||||||
microhttpd_dep = dependency('libmicrohttpd', static:static_deps)
|
microhttpd_dep = dependency('libmicrohttpd', static:static_deps)
|
||||||
|
|
||||||
if not compiler.has_header('mustache.hpp')
|
if compiler.has_header('mustache.hpp')
|
||||||
|
extra_include = []
|
||||||
|
elif compiler.has_header('mustache.hpp', args: '-I/usr/include/kainjow')
|
||||||
|
extra_include = ['/usr/include/kainjow']
|
||||||
|
else
|
||||||
error('Cannot found header mustache.hpp')
|
error('Cannot found header mustache.hpp')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -37,7 +41,7 @@ endif
|
||||||
|
|
||||||
all_deps = [thread_dep, libicu_dep, libzim_dep, pugixml_dep, libcurl_dep, microhttpd_dep]
|
all_deps = [thread_dep, libicu_dep, libzim_dep, pugixml_dep, libcurl_dep, microhttpd_dep]
|
||||||
|
|
||||||
inc = include_directories('include')
|
inc = include_directories('include', extra_include)
|
||||||
|
|
||||||
conf = configuration_data()
|
conf = configuration_data()
|
||||||
conf.set('VERSION', '"@0@"'.format(meson.project_version()))
|
conf.set('VERSION', '"@0@"'.format(meson.project_version()))
|
||||||
|
|
Loading…
Reference in New Issue