aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-configure.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/pkg-configure.cxx')
-rw-r--r--bpkg/pkg-configure.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/bpkg/pkg-configure.cxx b/bpkg/pkg-configure.cxx
index 6027269..16eefd2 100644
--- a/bpkg/pkg-configure.cxx
+++ b/bpkg/pkg-configure.cxx
@@ -104,12 +104,14 @@ namespace bpkg
//
string bspec;
+ // Use path representation to get canonical trailing slash.
+ //
if (src_root == out_root)
- bspec = "configure('" + out_root.string () + "/')";
+ bspec = "configure('" + out_root.representation () + "')";
else
bspec = "configure('" +
- src_root.string () + "/'@'" +
- out_root.string () + "/')";
+ src_root.representation () + "'@'" +
+ out_root.representation () + "')";
l4 ([&]{trace << "buildspec: " << bspec;});