aboutsummaryrefslogtreecommitdiff
path: root/build/cxx/link.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-11-30 18:17:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-11-30 18:17:45 +0200
commit4dabe6e1fb2ebf714582a50d582c1f9e2efc08a3 (patch)
tree376a64d61386c064cae3463e2f34eaf8efeef170 /build/cxx/link.cxx
parent6e18ee41d75f73e8ef62ea296a9a2cc5af45acea (diff)
Don't try to install targets from other projects
Diffstat (limited to 'build/cxx/link.cxx')
-rw-r--r--build/cxx/link.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/build/cxx/link.cxx b/build/cxx/link.cxx
index 6742ff2..f489a0d 100644
--- a/build/cxx/link.cxx
+++ b/build/cxx/link.cxx
@@ -405,9 +405,10 @@ namespace build
// If we have any prerequisite libraries (which also means that
// we match), search/import and pre-match them to implement the
- // "library meta-information protocol".
+ // "library meta-information protocol". Don't do this if we are
+ // called from the install rule just to check if we would match.
//
- if (seen_lib && lt != type::e)
+ if (seen_lib && lt != type::e && a.operation () != install_id)
{
if (t.group != nullptr)
t.group->prerequisite_targets.clear (); // lib{}'s