aboutsummaryrefslogtreecommitdiff
path: root/bdep
diff options
context:
space:
mode:
Diffstat (limited to 'bdep')
-rw-r--r--bdep/config.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/bdep/config.cxx b/bdep/config.cxx
index 6929fb7..d7a8350 100644
--- a/bdep/config.cxx
+++ b/bdep/config.cxx
@@ -578,13 +578,17 @@ namespace bdep
// Call bpkg to link the configurations.
//
// If possible, rebase the linked configuration directory path relative to
- // the other configuration path.
+ // the other configuration path. Also use our associated name as the
+ // linked configuration name.
//
+ const optional<string>& cn (lc->name);
+
run_bpkg (2,
o,
"cfg-link",
ld.try_relative (cd) ? "--relative" : nullptr,
"-d", cd,
+ (cn ? "--name" : nullptr), (cn ? cn->c_str () : nullptr),
ld);
}