meson: fix missing i2c header
Subproject builds result in the following compile error:
```
In file included from ../common/i2c/i2c.cpp:1:
../common/include/i2c/i2c.hpp:7:10: fatal error: sdbusplus/async.hpp: No such file or directory
7 | #include <sdbusplus/async.hpp>
| ^~~~~~~~~~~~~~~~~~~~~
```
Add the missing dependency in the common/i2c subdirectory.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ice1dd80fee70e57c6c4e5250d4c0f41e3122e2b9
diff --git a/common/i2c/meson.build b/common/i2c/meson.build
index eb92b88..4f282ca 100644
--- a/common/i2c/meson.build
+++ b/common/i2c/meson.build
@@ -2,11 +2,13 @@
libi2c_dev = static_library(
'i2c_dev',
'i2c.cpp',
+ dependencies: [sdbusplus_dep],
include_directories: libi2c_inc,
link_args: '-li2c',
)
libi2c_dep = declare_dependency(
link_with: libi2c_dev,
+ dependencies: [sdbusplus_dep],
include_directories: libi2c_inc,
link_args: '-li2c',
)