Boost logo

Boost-Build :

From: Claudio Pacciarini (clau3107_at_[hidden])
Date: 2005-12-28 05:21:24


Hi,

I've been struggling with BJAM for days due my ignorance about jam/bjam.
I've been studying but it's been hard so far.

My latest problem:

I have these two directories:

  test
  test\simple

inside test, I have a Jamfile like this:

// Jamfile inside directory 'test'

import testing ;

lib boost_unit_test : : <name>libboost_unit_test_framework-mt-gd
<variant>debug ;
lib boost_unit_test : : <name>libboost_unit_test_framework-mt
<variant>release ;

project tests
        : requirements
                <library>boost_unit_test
        ;

build-project simple ;

// EOF

Inside directory test/simple, I have another Jamfile containing this:

// Jamfile inside directory test/simple

import testing ;

run hellobeatlestest.cpp boost_unit_test ;

// EOF

But being inside directory 'test', when I enter bjam, I get this:

error: Unable to find file or target named
error: 'boost_unit_test'
error: referred from project at
error: 'simple'

Why is this happening? Shouldn't the lib be inherited from the parent
Jamfile?

What I'm trying to avoid is having to specify boost's unit test lib on each
test project (in this case I have only one, 'simple'). How can I do this?

Also: do I have to specify in the Jamfile inside directory 'test' each of
the test projects I want to build? Isn't it possible to build all sub
projects automatically?

Thanks and happy holidays,

Claudio


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