|
Boost : |
Subject: Re: [boost] [Build] Specify compiler on the command line
From: Louis Dionne (ldionne.2_at_[hidden])
Date: 2015-10-16 22:09:18
Rene Rivera <grafikrobot <at> gmail.com> writes:
>
> On Fri, Oct 16, 2015 at 11:37 AM, Louis Dionne <ldionne.2 <at> gmail.com>
> wrote:
>
> > Yes, this works but the problem is that it's not script friendly, because
> > you
> > have to write the file in the right place, and then call b2. I'm trying to
> > run Boost.Build from Travis, and so far it hasn't been easy. Anyway, I got
> > it
> > to work even though it's not pretty.
> >
>
> Maybe this helps.. <
> https://github.com/boostorg/predef/blob/develop/.travis.yml> The CI support
> is experimental so far though.
AFAICT, you do the same thing I do, i.e. create a dummy Jamroot and a
project-config.jam file containing the toolset configuration. This works,
but I was precisely trying to avoid it since it's not as clean and easy as
cmake .. -DCMAKE_CXX_COMPILER=clang++-3.7
I guess this is the only way to do it with Boost.Build, so it's fine.
Regards,
Louis
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk