From df9455da60ad71eed204351d337d628b8fe4db7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Thu, 14 Jun 2012 07:55:51 +0000 Subject: [PATCH] Made Boost library build script's '--with-...' & '--without-...' parameter checking more strict so e.g. '--run--with--system' is not interpreted as one of those options. [SVN r78935] --- boostcpp.jam | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/boostcpp.jam b/boostcpp.jam index 1839c5fa69..c652bf11ec 100644 --- a/boostcpp.jam +++ b/boostcpp.jam @@ -508,16 +508,16 @@ build-system.set-post-build-hook $(__name__).post-build ; rule libraries-to-install ( existing-libs * ) { local argv = [ modules.peek : ARGV ] ; - local with-parameter = [ MATCH --with-(.*) : $(argv) ] ; - local without-parameter = [ MATCH --without-(.*) : $(argv) ] ; + local with-parameter = [ MATCH ^--with-(.*) : $(argv) ] ; + local without-parameter = [ MATCH ^--without-(.*) : $(argv) ] ; if ! $(with-parameter) && ! $(without-parameter) { # Nothing is specified on command line. See if maybe project-config.jam # has some choices. local libs = [ modules.peek project-config : libraries ] ; - with-parameter = [ MATCH --with-(.*) : $(libs) ] ; - without-parameter = [ MATCH --without-(.*) : $(libs) ] ; + with-parameter = [ MATCH ^--with-(.*) : $(libs) ] ; + without-parameter = [ MATCH ^--without-(.*) : $(libs) ] ; } # Do some checks.