From 2883eb386ba36d528989f55f50f7e05e0cf1e7fb Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 8 Jan 2003 19:38:27 +0000 Subject: [PATCH] bug fix [SVN r16799] --- src/build/property.jam | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/build/property.jam b/src/build/property.jam index a9f8af3b3..39322f6ee 100644 --- a/src/build/property.jam +++ b/src/build/property.jam @@ -296,9 +296,14 @@ rule take ( attributes + : properties * : feature-space ? ) rule select ( features * : properties * ) { local result ; + + # add any missing angle brackets + local empty = "" ; + features = $(empty:G=$(features)) ; + for local p in $(properties) { - if $(p:G) = <$(features)> + if $(p:G) in $(features) { result += $(p) ; } @@ -461,6 +466,11 @@ local rule __test__ ( ) assert.result a : select include : a gcc ; + assert.result a + : select include bar : a gcc ; + + assert.result a gcc + : select include : a gcc ; pm = [ new property-map ] ; $(pm).insert gcc : o ;