Boost logo

Boost-Build :

Subject: Re: [Boost-build] Setting default properties for a project
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-06-04 12:59:11


On Thursday 04 June 2009 20:50:54 Anthony Foglia wrote:
> We have a rather large project composed of multiple final executables,
> and we're considering supporting compilation of both single and
> multi-threaded versions. In our Jamroot, we have
>
> project
> : requirements
> <threading>multi
> # some <define>s for different variants, and other stuff
> ;

Per documentation, this makes everything build with threading=multi

>
> So bjam debug -sthreading=single finds no targets to rebuild.[*]
> [*] I also tried bjam debug threading=single, which I think is the new
> syntax, with no difference, obviously.

The -sthreading=single syntax never, ever worked.

> There is a default-build attribute for the project, but the only
> examples I've seen use it to determine which variant to build.

The default build is not limited to 'variant' feature, you can use
<threading>multi as default build.

- Volodya


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