Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2004-08-22 10:32:48


Jeff Holle <jeff.holle_at_[hidden]> writes:

> I'm using Boost.Jam Version 3.1.9. OS=LINUX.

The question is always, "which version of Boost.Build?" I think
you're using v1.

> I'm developing a library with a lot of different test programs.
> These test programs are placed in subdirectories of the directory where
> this library is built (via bjam).
>
> The problem that I'm having is these test program Jamfiles don't know
> that the library under developement is a dependency.
>
> A typical Jamfile for these test programs is:
> exe test
> : # sources
> test.cpp
> : # requirements
> <sysinclude>$BOOST_ROOT
> <include>..
> <find-library>layout
> <debug><library-path>../liblayout.a/gcc/debug/inlining-on
> <release><library-path>../liblayout.a/gcc/release/inlining-on
> <find-library>bgl-viz
>
> <debug><library-path>$(BOOST_ROOT)/bin/boost/libs/graph/build/libbgl-viz.a/gcc/debug/inlining-on
>
> <release><library-path>$(BOOST_ROOT)/bin/boost/libs/graph/build/libbgl-viz.a/gcc/release/inlining-on
> : release debug
>
> Could somebody please tell me how to express the liblayout.a file as a
> dependency?

You have to put it in the sources:

exe test
: # sources
test.cpp
<lib>../layout # I am assuming "layout" is a library defined
# in ../Jamfile.
: # requirements
<sysinclude>$BOOST_ROOT
<include>..
<find-library>bgl-viz
;

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com
 

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