Boost logo

Boost-Build :

Subject: Re: [Boost-build] Feature does not create folder
From: Juergen Hunold (juergen.hunold_at_[hidden])
Date: 2008-12-10 11:20:37


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

-- 
* Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für 
* voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99       ! Lister Straße 15
* juergen.hunold_at_[hidden]        ! www.ivembh.de
* 
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !

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