build: rename dependency variable
Per [1], the conventions for dependency variables are to
be named '<project or lib>_dep'. This allows consistency
when using this project as a meson-subproject elsewhere.
Switch the name from 'libpldm' to 'libpldm_dep'.
1. https://mesonbuild.com/Subprojects.html#naming-convention-for-dependency-variables
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I98c8e2148610b45755b45029d1d38206bac5b885
diff --git a/libpldm/meson.build b/libpldm/meson.build
index bc31526..e884f66 100644
--- a/libpldm/meson.build
+++ b/libpldm/meson.build
@@ -60,7 +60,7 @@
version: meson.project_version(),
install: true)
-libpldm = declare_dependency(
+libpldm_dep = declare_dependency(
include_directories: include_directories(libpldm_headers),
link_with: libpldm)
diff --git a/libpldm/tests/meson.build b/libpldm/tests/meson.build
index 5502820..a4fb1cc 100644
--- a/libpldm/tests/meson.build
+++ b/libpldm/tests/meson.build
@@ -38,7 +38,7 @@
link_args: dynamic_linker,
build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
dependencies: [
- libpldm,
+ libpldm_dep,
gtest,
gmock]),
workdir: meson.current_source_dir())