|
Boost-Build : |
Subject: [Boost-build] address-model and optional feature
From: Renaud Lepère (renaud.lepere_at_[hidden])
Date: 2010-09-01 03:51:51
I'm trying to install built libraries somewhere depending if this is 32
bits or 64 bits binaries. So i try to do something like this:
install myinstall
: myproject
: <address-model>32:<location>../build/bin
<address-model>64:<location>../build/bin64 ;
But sometimes, i don't specify address-model (this leads to a 32bit
build in this case) but in this case the location of the myinstall rule
is not set correcty?
I have seen under buildin.jam that the address-model is an optional feature.
feature.feature address-model : 16 32 64 32_64 : propagated optional ;
The documentation (*) tells that the default value for address-model is
16bits ? What is the good way to slove my problem ?
Should i say something like ?
install myinstall
: myproject
: <location>../build/bin
<address-model>32:<location>../build/bin
<address-model>64:<location>../build/bin64 ;
Thanks,
Renaud
(*) bbv2 manual
# optional
An optional feature is a feature that is not required to appear in a
build specification. Every non-optional non-free feature has a default
value that is used when a value for the feature is not otherwise
specified, either in a target's requirements or in the user's build
request. [A feature's default value is given by the first value listed
in the feature's declaration. -- move this elsewhere - dwa]
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