aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cli/rule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/cli/rule.cxx')
-rw-r--r--libbuild2/cli/rule.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbuild2/cli/rule.cxx b/libbuild2/cli/rule.cxx
index 996ca51..7c571d4 100644
--- a/libbuild2/cli/rule.cxx
+++ b/libbuild2/cli/rule.cxx
@@ -120,7 +120,8 @@ namespace build2
prerequisite_members (a, t)))
{
if (g == nullptr)
- g = &t.ctx.targets.insert<cli_cxx> (t.dir, t.out, t.name, trace);
+ g = &t.ctx.targets.insert_implied<cli_cxx> (
+ t.dir, t.out, t.name, trace);
prerequisites ps;
ps.push_back (p->as_prerequisite ());