Subproject include as system include
This commit fixes a minor regression induced when we moved to using
submodule projects in meson. When including boost and boost-url
headers, some compilers take issue with them, so they need to be
included as -isystem, instead of -I. This also helps with running
clang-tidy within meson.
Tested:
meson buildlocal
ninja -C buildlocal
Compiles on a fresh clone.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: Ic92ed1a1cc2c661b715c63a974e0db35c793f5f4
diff --git a/meson.build b/meson.build
index 0a743f6..2074248 100644
--- a/meson.build
+++ b/meson.build
@@ -288,6 +288,7 @@
boost = dependency('boost',version : '>=1.80.0', required : false, include_type: 'system')
if not boost.found()
boost = subproject('boost', required: true).get_variable('boost_dep')
+ boost = boost.as_system('system')
endif
bmcweb_dependencies += boost
@@ -295,6 +296,7 @@
boost_url = declare_dependency()
else
boost_url = subproject('boost-url', required: true).get_variable('boost_url_dep')
+ boost_url = boost_url.as_system('system')
endif
bmcweb_dependencies += boost_url