|
Boost-Build : |
Subject: [Boost-build] aliases for sublibraries
From: Karsten Ahnert (karsten.ahnert_at_[hidden])
Date: 2012-01-16 15:34:47
Hi,
I have a tree like structure for a small software project:
Root
+ Jamroot
+ apps
+ app1.exe
+ ...
+ Jamfile
+ libsraries
+ lib1
+ source1.cpp
+ ...
+ Jamfile
+ lib2
+ source1.cpp
+ ...
+ Jamfile
In each of the lib* directories a static or shared library is created.
Now, some of these libraries depend on other for example lib2 depends on
lib1 and I want to use aliases to reference on the depend library.
I created these aliases in the Jamroot, via
alias /MyProject/lib1 : ./libraries/lib1//lib1 ;
alias /MyProject/lib2 : ./libraries/lib1//lib2 ;
but referencing them does not work. If I call bjam from the root
directory I obtain:
error: Unable to find file or target named
error: '/MyProject/lib1'
error: referred from project at
error: 'libs/lib2'
Is there a easy way to create such aliases? Similar to
/boost//filesystem ? I played around with different names (leading
slashed) and I tried to use appropriate project names but I was unable
to figure out how it works in general.
Thank you,
Karsten
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