fix: i2cvr-software-update meson.build cleanup for i2c dependency
Change-Id: Ie2f004bcdf672a850888aa089f12ede402f1ed24
Signed-off-by: Christopher Meis <christopher.meis@9elements.com>
diff --git a/common/i2c/meson.build b/common/i2c/meson.build
index fd8a702..eb92b88 100644
--- a/common/i2c/meson.build
+++ b/common/i2c/meson.build
@@ -1,7 +1,11 @@
-libi2c_dev = static_library('i2c_dev', 'i2c.cpp', link_args: '-li2c')
-libi2c_inc = include_directories('.')
+libi2c_inc = include_directories('../include/i2c/')
+libi2c_dev = static_library(
+ 'i2c_dev',
+ 'i2c.cpp',
+ include_directories: libi2c_inc,
+ link_args: '-li2c',
+)
libi2c_dep = declare_dependency(
- common_include,
link_with: libi2c_dev,
include_directories: libi2c_inc,
link_args: '-li2c',