From b228b8065532031d5f008e34452c7cfa4a3e66c3 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 16 Jun 2022 12:14:04 +0100 Subject: 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', -- cgit v1.2.1