|
Boost-Build : |
From: Phillip Seaver (phil_at_[hidden])
Date: 2006-10-19 08:22:44
Daniel Lidström wrote:
> Hello!
>
> I'm trying to specify alternatives depending the version of a specific
> toolset. For example:
>
> lib demangler : dummy_demangler.cpp ; # alternative 1
> lib demangler : demangler_gcc.cpp : <toolset>gcc-4.1.1 ; # alternative 2
> lib demangler : demangler_msvc.cpp : <toolset>msvc ; # alternative 3
>
> exe test : main.cpp demangler ;
>
> My user-config has these toolsets:
>
> using gcc : 4.1.1 : /usr/bin/g++ ;
>
> It doesn't seem to work. The alternativ 1 is being built:
>
> aeon:/home/daniel/programming/test> bjam
> ...found 14 targets...
> ...updating 3 targets...
> gcc.compile.c++ bin/gcc-4.1.1/debug/dummy_demangler.o
> gcc.link.dll bin/gcc-4.1.1/debug/libdemangler.so
> gcc.link bin/gcc-4.1.1/debug/test
> ...updated 3 targets...
>
> Is it possible to specify alternative depending on toolset version?
>
I think you need to use "<toolset-gcc:version>4.1.1"
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