From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-12-23 10:39:40
On Thursday 23 December 2004 18:29, TEMPLIE Cédric wrote:
> In my root Jamfile, I done the following thing :
> if [ glob Project1 ]
> #Project1 sources available
> use-project /project1 : ./project1 ;
> #Project1 sources unavailable,
> #so use already build libraries
> use-project /project1 : $(STAGE_DIR) ;
> In $(STAGE_DIR), there is a jamfile that declare same targets than in
> project1, but just point to needed file instead of building them...
> Isn't it a valid solution ?
It is, indeed. But if ./project1 defines export_headers, export_lib and
project1 lib target, then project2 better link to "project1".
1. If project1 is available you link directly to the library, not to the
2. If project1 is not available then Jamfile in $(STAGE_DIR) will define
project1 target and you will link to it.
Still no need to link to result 'stage' target.
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