Boost logo

Boost-Build :

Subject: Re: [Boost-build] Build libs: which ver. of MSVC?
From: Phillip Seaver (phil_at_[hidden])
Date: 2012-09-21 09:06:42


On 9/21/2012 6:29 AM, Lars Viklund wrote:
> On Fri, Sep 21, 2012 at 08:33:36AM +0200, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
>> How does b2 detect the MSVC version?
> Brute-force against a pile of registry keys, and if all else fails, it
> tries 'cl.exe' in the runtime path.
>
>> Where to specify the target MSVC version to be 9.0?
> b2 toolset=msvc-9.0
>
> This pattern holds for most the possible toolsets, being
> toolset=name-major.minor
>

You can also shorten it to "b2 msvc-9.0".

If you almost always want to build with a particular compiler, you can
also put "using msvc : 9.0 ;" in your user-config.jam. I think you
should still be able to build with a different compiler by specifying it
on the command-line.

Phillip


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