|
Boost-Build : |
From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2006-07-03 07:21:17
Roland Schwarz wrote:
> I am wondering if it's possible to use bjam to automatically find the
> correct matching (prebuilt) boost library from within user projects:
>
[snip]
>
> I am wondering if there is a way to say something like:
>
> exe hello
>> hello.cpp
>> <sysinclude>/usr/local/include/boost-1_35
> <find-common-variant-library>boost_thread
> ;
Have you tried using conditional requirements (at the bottom of
http://boost.sourceforge.net/boost-build2/doc/html/bbv2/advanced/targets.html)?
You'll have your own method called with the current properties, which could
then be used to form the decorated target names. Just an idea.
+1 for adding this functionality to Boost.Build v2 itself. I've frequently
had the need to reference already built boost libraries from my projects.
// Johan
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