aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/scope.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-01-27 14:23:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-01-27 14:23:18 +0200
commit14c7d434df62989fbceef8322f61400844bd5943 (patch)
tree0b89e169d597d2ad264cdabeee2df1136ca80587 /libbuild2/scope.hxx
parent9e47b1fdea6fe589c531c5c649a9f1c22bc3a029 (diff)
See through lib{} group during dist
Diffstat (limited to 'libbuild2/scope.hxx')
-rw-r--r--libbuild2/scope.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/libbuild2/scope.hxx b/libbuild2/scope.hxx
index 655a1a0..ca21a17 100644
--- a/libbuild2/scope.hxx
+++ b/libbuild2/scope.hxx
@@ -396,6 +396,12 @@ namespace build2
root_extra->meta_operations.insert (id, in);
}
+ bool
+ find_module (const string& name) const
+ {
+ return root_extra->modules.find_module<module_base> (name) != nullptr;
+ }
+
template <typename T>
T*
find_module (const string& name) const