aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-configure.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-07-30 17:25:23 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-07-30 17:25:23 +0200
commitb94b5381f68061121c22f2786ba1fa774f1ee6f6 (patch)
tree887717ac2e585c93141e71509f8779e852c4967d /bpkg/pkg-configure.cxx
parentbee19e051ea565813588a532bfbae4ce0b2f4a71 (diff)
Convert to use canonical directory separators
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;});