From b94b5381f68061121c22f2786ba1fa774f1ee6f6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 30 Jul 2016 17:25:23 +0200 Subject: Convert to use canonical directory separators --- bpkg/pkg-configure.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bpkg/pkg-configure.cxx') 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;}); -- cgit v1.1