Boost logo

Boost-Build :

Subject: [Boost-build] aliases for sublibraries
From: Karsten Ahnert (karsten.ahnert_at_[hidden])
Date: 2012-01-16 15:34:47


I have a tree like structure for a small software project:

 + 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,


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