Subject: Re: [Boost-build] Conditional properties on the command line?
From: Vladimir Prus (ghost_at_[hidden])
Date: 2011-03-12 16:24:21
On Friday, March 11, 2011 19:53:58 John Maddock wrote:
> >> Is there a way to specify conditional properties on the command line if
> >> I'm
> >> building with multiple toolsets?
> >> For example if I'm building with
> >> bjam toolset1 toolset2
> >> and want to add additional include paths that are different for each of
> >> the
> >> two toolsets?
> > You can use:
> > bjam toolset=gcc/include=foo toolset=msvc/include=bar
> > That's not really conditional per se -- but seems like what you're after.
> Pretty much, that almost gets it, but what I actually need is to set 2
> properties separately for each toolset (include=path1 and search=path2),
> and I can't guess the syntax if there is one? BTW the above syntax
> doesn't seem to be documented?
bjam toolset=gcc/include=foo/include=foo2 toolset=msvc/include=bar/include=bar2
As for documentation, it's tricky issue. It used to be documented, but I don't
want this to be too widely known feature, because this syntax causes some ambiguities
when you have slashes inside the value, and it would be nice to invent a different
-- Vladimir Prus http://vladimir_prus.blogspot.com Boost.Build: http://boost.org/boost-build2
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk