aboutsummaryrefslogtreecommitdiff
path: root/build/install
diff options
context:
space:
mode:
Diffstat (limited to 'build/install')
-rw-r--r--build/install/rule.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/build/install/rule.cxx b/build/install/rule.cxx
index 6f0f95f..bd538ed 100644
--- a/build/install/rule.cxx
+++ b/build/install/rule.cxx
@@ -121,8 +121,16 @@ namespace build
// run standard search_and_match()? Will need an indicator
// that it was forced (e.g., [install]) for filter() below.
//
+ scope& rs (t.root_scope ());
+
for (prerequisite_member p: group_prerequisite_members (a, t))
{
+ // Ignore unresolved targets that are imported from other projects.
+ // We are definitely not installing those.
+ //
+ if (p.proj () != nullptr)
+ continue;
+
// @@ This is where we will handle [noinstall].
//
@@ -134,6 +142,12 @@ namespace build
continue;
target& pt (p.search ());
+
+ // Ignore targets that are outside of our project.
+ //
+ if (!pt.in (rs))
+ continue;
+
build::match (a, pt);
// If the matched rule returned noop_recipe, then the target