From c2001eb367b9b82e26689cad6f1f74f46c72b904 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 27 Apr 2017 08:29:52 +0200 Subject: Pass target to prerequisite search --- build2/cc/install.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build2/cc/install.cxx') diff --git a/build2/cc/install.cxx b/build2/cc/install.cxx index 6195ab7..e1e5719 100644 --- a/build2/cc/install.cxx +++ b/build2/cc/install.cxx @@ -42,7 +42,7 @@ namespace build2 if ((t.is_a () || t.is_a ()) && (p.is_a () || p.is_a ())) { - const target* pt (&p.search ()); + const target* pt (&p.search (t)); // If this is the lib{} group, pick a member which we would link. // -- cgit v1.1