From b8cffb11a45add241e4b8420ba96e116efccfbd9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 9 Jun 2020 07:40:54 +0200 Subject: Make metadata variable prefix mandatory While we could automatically set it if the target is imported, there is nothing we can do if the target is used in the same project. So to avoid confusion we make it mandatory. --- libbuild2/context.hxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libbuild2/context.hxx') diff --git a/libbuild2/context.hxx b/libbuild2/context.hxx index e4d4d4c..a8b6b01 100644 --- a/libbuild2/context.hxx +++ b/libbuild2/context.hxx @@ -363,10 +363,8 @@ namespace build2 // if not requested (but only in version 1). The exporter should also set // the returned version as the target-specific export.metadata variable. // - // The export.metadata value should start with the version optionally - // followed by the metadata variable prefix (for example, cli in - // cli.version). If the variable prefix is missing, it is assumed to be - // the target name as imported. + // The export.metadata value should start with the version followed by the + // metadata variable prefix (for example, cli in cli.version). // // The following metadata variable names have pre-defined meaning: // -- cgit v1.1