Boost logo

Boost-Build :

Subject: Re: [Boost-build] creating multiple targets
From: Juraj Ivančić (juraj.ivancic_at_[hidden])
Date: 2009-10-12 10:02:47


Stefan Zimmer wrote:
> Steven Watanabe wrote:
>> Use the alias rule:
>>
>> alias all : exe1 exe2 ;
>>
>
> Thanks, this works, but not as expected.
> All my targets ( exe1 and exe2 ) get builded. But now the executables are only in their cryptic directorys "exe1/bin/gcc...".
> I have written an install bin rule in each Jamfile, which shortens the path to $(BASE_DIR)/bin/[release or degug].
> this works fine, if I build the targets directly, but it doesn't work, with that alias rule.
> Any idea to solve this?

You can put targets which install exes into alias i.e.

alias all : install_exe1 install_exe2 ;

A simpler solution would be to replace alias with
install (untested):

install all
:
     exe1
     exe2
:
     <variant>debug:<location>bin/debug
     <variant>release:<location>bin/release
;


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