[librest/ebassi/subproject-override] Allow convenient use of librest as a subproject
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librest/ebassi/subproject-override] Allow convenient use of librest as a subproject
- Date: Thu, 16 Jun 2022 11:16:06 +0000 (UTC)
commit b228b8065532031d5f008e34452c7cfa4a3e66c3
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu Jun 16 12:14:04 2022 +0100
Allow convenient use of librest as a subproject
Meson allows projects to specify the dependency object when used as
subprojects; this avoids having to know the variable name to import into
the superproject.
See: https://mesonbuild.com/Reference-manual_builtin_meson.html#mesonoverride_dependency
rest/meson.build | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/rest/meson.build b/rest/meson.build
index f12dad3..5378ec7 100644
--- a/rest/meson.build
+++ b/rest/meson.build
@@ -118,6 +118,8 @@ librest_dep = declare_dependency(
dependencies: librest_deps,
)
+meson.override_dependency('rest-1.0', librest_dep)
+
# Test suite
test_runner_c_args = [
'-DBUILD_TESTS',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]