From e768120efb91c96f3f8763243fb44310c214f822 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Mon, 24 Jan 2005 15:45:07 +0000 Subject: [PATCH] * util/path.jam (glob): Call 'set.unique' on the result, to workaround case-insensitivity of some platforms. [SVN r26837] --- v2/util/path.jam | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/v2/util/path.jam b/v2/util/path.jam index 74aa9197a..29b1e96e3 100644 --- a/v2/util/path.jam +++ b/v2/util/path.jam @@ -247,7 +247,10 @@ rule glob ( dirs * : patterns + ) } } } - return $(result) ; + # Windows is not case-sensitive, so if you're globbing + # for Jamroot and jamroot, the result will include 'Jamroot' + # twice. Remove duplicates. + return [ sequence.unique $(result) ] ; } #