Boost logo

Boost-Build :

From: Jurko Gospodnetiæ (jurko.gospodnetic_at_[hidden])
Date: 2008-05-14 23:20:42

   Hi Motonari Ito

> I want to specify install location through command line parameter. It
> sounds simple - how can I do it?
> Let's say I have a Jamfile:
> -----------
> exe aaa : [ glob *.cpp ] ;
> install dist : aaa ;
> -----------
> And I want to change the target location through command line -
> something like;
> % bjam install-dir=foo
> So that aaa.exe is copied to foo/aaa.exe.

   Don't have the time to come up with a working example at the moment
but one way to do it would be to add a custom command line parameter
(use the MATCH to scan for it, for example see how the --built-type
parameter is implemented in the Boos library's Jamroot file). Note that
then you would need to tunnel the value passed on the command line to
the appropriate target property.

   Another way would be to use Boost Build's target specific properties.
I believe the syntax is something like:

   bjam dist/location=foo

   to set the location property when building the dist target, but I
could be wrong (in which case hopefully someone will correct me)... :-)
Check the docs for more examples of this syntax.

   Hope this helps.

   Best regards,
     Jurko Gospodnetiæ

   Do not know the language, so I was wondernig which is the name and
whic is the surname ? :-)

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at