Boost logo

Boost-Build :

Subject: Re: [Boost-build] Target alternatives - one more time
From: Vladimir Prus (ghost_at_[hidden])
Date: 2011-07-17 17:31:37


On Friday, July 15, 2011 01:12:46 Matthew Chambers wrote:
> You could also do it all in a rule like:
>
> rule some_source_requirements ( properties * )
> {
> if gcc-4.6.0 gcc-4.5.2 in $(properties:G=) { return
> <cxxflags>-std=c++0x ; } }
>
> obj some_source : some_source.cpp : <conditional>@some_source_requirements
> ;

This is really the most straigh-forward approach.

- Volodya

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