From a84ff43b183181e0a12c6d5e31c1f366d39ce2fe Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 31 Jul 2017 18:42:47 +0200 Subject: Experimental (and probably broken) pkg-config generation support --- build2/algorithm.ixx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'build2/algorithm.ixx') diff --git a/build2/algorithm.ixx b/build2/algorithm.ixx index 892c832..5680288 100644 --- a/build2/algorithm.ixx +++ b/build2/algorithm.ixx @@ -7,6 +7,14 @@ namespace build2 { + inline const target* + find_adhoc_member (const target& t, const target_type& tt) + { + const target* m (t.member); + for (; m != nullptr && !m->is_a (tt); m = m->member) ; + return m; + } + inline const target& search (const target& t, const prerequisite& p) { -- cgit v1.1