Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-05-25 02:09:00


On Wednesday 24 May 2006 18:52, Pedro Lamarão wrote:
> Vladimir Prus escreveu:
> > Given that you explicitly require version 6.0 in target requirements,
> > this is an expected result. If you want 6.0 to be default version, you
> > need to put that to default build:
> >
> > exe test
> >
> > : main.cpp
> > : # no requirements
> > : <toolset>msvc
> >
> > <toolset-msvc:version>6.0
> > ;
>
> Hum...
> Shouldn't that bjam invocation fail?
> My intention is not to make msvc-6.0 the default compiler, but the only
> compiler where this target builds.

The current behaviour is what is documented:
  
http://boost.org/boost-build2/doc/html/bbv2/advanced/targets.html#bbv2.advanced.targets.requirements

> It seems weird that I request toolset=msvc-7.1 on the command line and
> the target builds with another toolset.

If we want nothing to be done in this case, you can add another "target
alternative":

   alias test ;

that does nothing and will be used for other toolsets.

- Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: 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