diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2022-06-16 12:14:04 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2022-06-16 12:15:54 +0100 |
commit | b228b8065532031d5f008e34452c7cfa4a3e66c3 (patch) | |
tree | ef09d43498cf1054430cb89cb6e82eb685658231 | |
parent | 997ad55e32c9566b69ea2f1ece5b84bc3dd9ba1f (diff) | |
download | librest-b228b8065532031d5f008e34452c7cfa4a3e66c3.tar.gz |
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
-rw-r--r-- | rest/meson.build | 2 |
1 files changed, 2 insertions, 0 deletions
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', |