|
Boost-Build : |
From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2002-07-11 09:59:25
Hello,
what's the officially supported way of linking a boost library
with an external project that uses boost::build?
Say I have my own project foo that wants to link to the boost
thread library. I have set up everything so that I can compile
the project but I can't see how to link to the thread lib.
For example:
exe foo : foo.cpp : <sysinclude>$(BOOST_ROOT) ;
I tried to add
<find-library>$(BOOST_ROOT)/libs/thread/build/boost_thread
hoping that bjam would find the right thread lib on it's own
but that doesn't work as it just adds -l<...>/build/boost_thread
to the linker command line not taking into account the variants.
Next I tried to add
<lib>$(BOOST_ROOT)/libs/thread/build/boost_thread to the
sources but this doesn't work either because bjam doesn't
find threads.jam which is included from the Jamfile in the
thread build directory.
Any suggestions?
TIA, Markus
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