diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-09-13 12:13:47 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-09-13 12:13:47 +0200 |
commit | f98eaa0ebd343549e44ae7f6b7f79ac4e1377456 (patch) | |
tree | c126a17f589c4c3e2d48bb8c103fdb9b95c3d10d | |
parent | 893f1063367d1bc64c82bf599a3c3fb757f6d3a5 (diff) |
Use associated name as linked configuration name
-rw-r--r-- | bdep/config.cxx | 6 |
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); } |