meson: Add CLI11 dependency
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: I3b4016acc026c46cd312ffe3b829e00bf2281617
diff --git a/meson.build b/meson.build
index 6153f23..72f3ccf 100644
--- a/meson.build
+++ b/meson.build
@@ -29,6 +29,12 @@
# Project Arguments
cpp = meson.get_compiler('cpp')
+if cpp.has_header('CLI/CLI.hpp')
+ cli11_dep = declare_dependency()
+else
+ cli11_dep = dependency('CLI11')
+endif
+
add_project_arguments(
cpp.get_supported_arguments([
'-DBOOST_ERROR_CODE_HEADER_ONLY',
@@ -40,6 +46,7 @@
language : 'cpp')
deps = [
+ cli11_dep,
ipmid_dep,
userlayer_dep,
channellayer_dep,