From ab07ba65231796824cb7da8cd1fa68821bade33d Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sat, 24 Nov 2007 02:16:50 +0000 Subject: [PATCH] Allow use of "conditional" to multiply a condition that already has the full condition in it. [SVN r41324] --- v2/build/project.jam | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/v2/build/project.jam b/v2/build/project.jam index 92d4a958a..ec9826828 100644 --- a/v2/build/project.jam +++ b/v2/build/project.jam @@ -1007,7 +1007,15 @@ module project-rules # rule conditional ( condition + : requirements * ) { - return $(condition:J=,):$(requirements) ; + local condition = $(condition:J=,) ; + if [ MATCH (:) : $(condition) ] + { + return $(condition)$(requirements) ; + } + else + { + return $(condition):$(requirements) ; + } } }