|
Boost-Build : |
Subject: Re: [Boost-build] Feature does not create folder
From: Templie Cédric (cedric.templie_at_[hidden])
Date: 2008-12-10 12:10:25
Juergen Hunold wrote:
> Hi !
>
> On Wednesday 10 December 2008 15:35:24 Templie Cédric wrote:
>
>
>> In my jamfile I have:
>> local domainCryptoFiles = [ glob
>> ./$(DOMAIN)/$(CRYPTOGRAPHY_ENGINE)/*.cpp ] ;
>>
>> This works quite fine, even if it is maybe not the optimized solution
>> (BTW if another, better way to proceed exists, I will be glad to know :))
>>
>
> Sometimes "glob" is the right solution ;-))
>
>
>> My problem is when I decide to build for 2 Domains, one after the other,
>> the results are simply overwritten in build path
>> (msvc-8.0/release/threading-multi)
>>
>
> This is expected behaviour for current release. This has been fixed in trunk.
> Can you please state the Boost version you are using next time ?
>
>
>> In order to overcome that problem, I have tried to use features like that:
>>
>> # Feature declaration
>> feature domain : Domain1 Domain2 ;
>> feature cryptoengine : Crypto1 Crypto2 ;
>>
>> #Feature usage (either in project or target requirements)
>> <domain>$(DOMAIN) <cryptoengine>$(CRYPTOGRAPHY_ENGINE)
>>
>
> Well, I don't like it.
>
>
>> I though that folders would be created using features, but it is not the
>> case.
>>
>
> No, not for ordinary features.
>
>
>> What have I done wrong ?
>>
>
> make the features at least "propagated" and maybe "symmetric" if you always
> want the path append (non-symmetric features have "default" value which is
> omitted).
>
>
>> Thanks in advance for answers.
>>
>
> Hope this helps,
>
> Yours,
>
> Jürgen
>
Thank you very much, the symmetric property does exactly the job.
Combined with optional, I have exactly what I wanted.
I do not think I need propagated in my case.
Anyway, thanks again for the solution.
Cédric Templie
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