diff --git a/meson.build b/meson.build index c58767e4b..864b46a8a 100644 --- a/meson.build +++ b/meson.build @@ -25,7 +25,11 @@ pugixml_dep = dependency('pugixml', static:static_deps) libcurl_dep = dependency('libcurl', 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') endif @@ -37,7 +41,7 @@ endif 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.set('VERSION', '"@0@"'.format(meson.project_version()))