From: David Abrahams (dave_at_[hidden])
Date: 2005-09-22 16:11:54
Jason Stewart <jstewart_at_[hidden]> writes:
>>Well, you should use Jamroot, but that aside, add
>> use-project /boost : $(BOOST_ROOT) ;
> Do you mean the rules should be in Jamroot instead of project-root.jam?
Jamroot combines the top Jamfile and project-root.jam; you can just
dump everything in there. But it's not crucial.
> --- project-root.jam ---
> path-constant PROJECT_ROOT : . ;
> path-constant BOOST_ROOT : c:/boost ;
> use-project /boost : $(BOOST_ROOT) ;
>> > In the Ptolemy directory I have the following:
>> > --- Jamfile ---
> The Ptolemy/Jamfiles file now looks like this:
> project Ptolemy ;
> unit-test test : [ glob test/*.cpp ] Ptolemy
> lib Ptolemy : [ glob *.cpp ] ../Geodesy//Geodesy
> : <link>static
> I know you mentioned putting the reference to the test framework in
> the lib target but the linking error is in the unit-test target.
Technically, it probably doesn't matter :) but in this case you're
right it should clearly go on the unit-test.
> I tried it both places for good measure and superstition. Now I get:
> Failed to find the project root for directory '/c:/boost'.
> Did not find a project-root.jam file there or in any of its
> parent directories.
> Please consult the documentation at 'http://www.boost.org'.
> I should mention that c:\boost is an installed copy of boost, not a
> full source tree. That is, I downloaded the source and ran 'bjam
> install'. So it has an include directory and a lib directory but no
> sources other than the headers in include.
Oh, well, that's dumb. We should fix that.
> I don't understand why the line in my Jamfile is
> instead of
> As I understand it, the line that I added to my Jamroot file defines
> an external library called boost and specifies a location for it.
I think the information you want is at
in that case.
-- Dave Abrahams Boost Consulting 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