Fix libpeci build
libpeci recently moved to meson. The detection logic here wasn't
working, and would always fall back to a custom build using cmake.
Replace with a simple dependency call.
Change-Id: Ica52e81da1d8f2d0215a58aa4790c1154fa24810
Signed-off-by: Ed Tanous <edtanous@google.com>
diff --git a/src/meson.build b/src/meson.build
index 9f56c31..03310b7 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -61,14 +61,7 @@
endif
if get_option('intel-cpu').enabled()
- peci_dep = meson.get_compiler('cpp').find_library('libpeci', required : false)
- if not peci_dep.found()
- cmake = import('cmake')
- opt = cmake.subproject_options()
- opt.append_compile_args('c', '-Wno-pedantic')
- peci_proj = cmake.subproject('libpeci', options : opt)
- peci_dep = peci_proj.dependency('peci')
- endif
+ peci_dep = dependency('libpeci', required : true)
endif
if get_option('adc').enabled()