From d48a0701aed6bb65b32955dc7b00a024894677cf Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Mon, 17 May 2004 09:02:27 +0000 Subject: [PATCH] When project-scope 'glob' is called with directory in wildcard, return absolute paths names. [SVN r22849] --- src/build/project.jam | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/build/project.jam b/src/build/project.jam index a1d669477..0dbce3278 100644 --- a/src/build/project.jam +++ b/src/build/project.jam @@ -615,9 +615,13 @@ module project-rules { local l = [ path.join $(location) $(w:D) ] ; local paths = [ path.glob $(l) : $(w:D="") ] ; + # The paths we've found are relative to current directory, + # but the names specified in sources list are assumed to + # be relative to source directory of the corresponding + # prject. So, just make the name absolute. for local p in $(paths) { - all-paths += [ path.relative $(p) $(location) ] ; + all-paths += [ path.root $(p) [ path.pwd ] ] ; } }