From 1d925696ac7eb8d7adb4d70b3f5afb010d745931 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 11 Jan 2024 11:02:16 +0200 Subject: Add ability to alias target type from another project The syntax is: define = / --- libbuild2/scope.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbuild2/scope.hxx') diff --git a/libbuild2/scope.hxx b/libbuild2/scope.hxx index e53a7ca..50347b2 100644 --- a/libbuild2/scope.hxx +++ b/libbuild2/scope.hxx @@ -320,7 +320,7 @@ namespace build2 const target_type& insert_target_type (const target_type& tt) { - return root_extra->target_types.insert (tt); + return root_extra->target_types.insert (tt).first; } template -- cgit v1.1