Boost logo

Boost-Build :

Subject: Re: [Boost-build] hierarchical install ?
From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2009-09-01 05:29:32


Avi Bahra wrote:
>> I have a directory hierarchy. In some of my sub directories I have
>> exe that i want to install. In the jam file I have:
>>

[...]

>>
>
> Steve wrote:
>
>> Each Jamfile needs to list the subprojects to install.
>>
>> alias install : subdirectory1//install subdirectory2//install ;
>> explicit install ;
>
>
> Ok, it did not fail, but it does not work as expected.
> Running bjam install , now installs relative to subdirectory1/
> In my case I have added,

[...]

>
> It seems to ignore ignore the <location> and installs relative to the
> sub directories Server/Client, and not at the
> absolute location defined by the environment $SMS_INSTALL_DIR

1. To expand a variable, use parenthesis e.g. $(SMS_INSTALL_DIR)
2. To access an environment var, use e.g.

import os ;
constant SMS_INSTALL_DIR = [ os.environ SMS_INSTALL_DIR ] ;

 - or -

import modules ;
constant SMS_INSTALL_DIR = [ modules.peek : SMS_INSTALL_DIR ] ;

Add the above to your Jamroot and fix the SMS_INSTALL_DIR reference (add
parens) in your subprojects, that should to it.

HTH / Johan


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