Boost logo

Boost-Build :

Subject: [Boost-build] Shared library as usage-requirement
From: Younes Manton (ym.forums_at_[hidden])
Date: 2009-01-06 02:50:01

I have a static library "libkar", and this library depends on
boost_iostreams. In the Jamfile of every depedent of libkar I have to
specify that the depedent must also link with boost_iostreams. I want
to avoid this extra work and require that all dependents of libkar
also link with boost_iostreams when libkar is static, but I can't get
it to work. This is what I tried first by moving the
'<library>boost_iostreams' and 'searched-lib boost_iostreams' rule
from a dependent target's Jamfile into libkar's Jamfile:

# Project attributes
        : usage-requirements <include>.

# Project targets
lib libkar : archive.cpp archive_file.cpp : <link>static ;

searched-lib boost_iostreams
        : <name>boost_iostreams-gcc43-mt

I've also tried some other things like putting boost_iostreams in the
sources list, nothing seems to work like I want it to. Any help would
be appreciated.

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