Boost logo

Boost-Build :

From: Zbynek Winkler (zwin_at_[hidden])
Date: 2003-12-08 13:14:05


Hello.

Is this the expected behavior of the alias target?

[top]
|--Jamfile
|--project-root.jam
|--foo
| |--Jamfile
| |--foo_test.cpp
|--bar
| |--Jamfile
| |--bar_test.cpp

/Jamfile:
alias test : foo//test bar//test ;

/foo/Jamfile
alias test_src : foo_test.cpp ;
unit-test test : test_src ;

/bar/Jamfile
alias test_src : bar_test.cpp ;
unit-test test : test_src ;

Running 'bjam' updates foo//test and bar//test, but when creating the
bar//test it links *both* bar_test.cpp *and* foo_test.cpp into the
binary. Isn't /foo//test_src something unrelated to /bar//test_src?

Zbynek
PS. I guess you can also remove this note from the documentation:

(Note, that the "alias" target type is not yet implemented, but it's
quite simple to do. I bet it's waiting for you to do it ;-))

-- 
http://zw.matfyz.cz/ http://robotika.cz/
Faculty of Mathematics and Physics, Charles University, Prague, Czech 
Republic
 

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