From 4dabe6e1fb2ebf714582a50d582c1f9e2efc08a3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 30 Nov 2015 18:17:45 +0200 Subject: Don't try to install targets from other projects --- build/target | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'build/target') diff --git a/build/target b/build/target index d4a4bef..a866c98 100644 --- a/build/target +++ b/build/target @@ -205,6 +205,8 @@ namespace build target_key key () const {return target_key {&type (), &dir, &name, &ext};} + // Scoping. + // public: // Most qualified scope that contains this target. // @@ -225,6 +227,15 @@ namespace build scope& strong_scope () const {return *root_scope ().strong_scope ();} + + bool + in (const scope& s) const + { + return + (s.out_path_ != nullptr && dir.sub (*s.out_path_)) || + (s.src_path_ != nullptr && dir.sub (*s.src_path_)); + } + // Prerequisites. // public: -- cgit v1.1