|
Boost-Build : |
Subject: Re: [Boost-build] accessing properties not working
From: Vladimir Prus (ghost_at_[hidden])
Date: 2010-04-04 06:43:32
On Sunday 04 April 2010 13:07:41 Oliver Kowalke wrote:
> I struggling with boost.build for a while and I don't get the Jamfile
> working. I hope you are so kind to help me a little bit.
>
> I use target alternatives for different platforms. The alternatives
> depend on used compiler, architecture, target-os and linkage.
>
> I've added a new feature ctxapi which is used to select the correct
> target-alternative.
>
> Unfortunately the rule setting the default value for ctxapi can not
> access the properties like <toolset>.
>
> rule default_ctxapi ( properties * )
> {
> if <toolset>gcc in $(properties)
> {
> # never entered ?!
> }
> }
>
> feature.set-default ctxapi : [ default_ctxapi $(properties) ] ;
I am unsure why you expect this to work. The last line tries to access
variable named 'properties' and pass its value to the 'default_ctxapi'
function. I don't think that variable named 'properties' is defined in
Jamfile -- unless you have defined it yourself.
Thanks,
-- 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