|
Boost-Build : |
From: David Abrahams (dave_at_[hidden])
Date: 2006-06-26 11:33:05
"Reece Dunn" <msclrhd_at_[hidden]> writes:
> David Abrahams wrote:
>> "Felipe Magno de Almeida" <felipe.m.almeida_at_[hidden]> writes:
>>
>> > Hi,
>> >
>> > I have a project like this:
>> >
>> > exe misvc : $(SOURCES).cpp $(BOOST_ROOT)//thread $(BOOST_ROOT)//serialization
>>
>> Isn't "$(BOOST_ROOT)" just supposed to be "boost"? Or am I missing
>> something?
>
> IIUC, this depends on two things. Either:
>
> (1) The project that references boost//thread is in a subdirectory
> of $(BOOST_ROOT): this means that Boost libraries can reference
> other Boost libraries like this;
>
> (2) You import the $(BOOST_ROOT) library names in a parent Jamfile
> of the one you are referencing the boost//library in. I can't recall
> exactly how to do this, but I think it is something like:
>
> using-project boost : $(BOOST_ROOT) ;
It's
use-project boost : /path/to/boost/root ;
> You could have:
>
> alias boost : $(BOOST_ROOT) ;
>
> and
>
> exe test : [ glob *.cpp ] boost//thread ;
>
> I believe that would work. Either way, I think you need
> $(BOOST_ROOT) somewhere when you are not in a child of
> $(BOOST_ROOT).
I guess my point is that you don't really need $(BOOST_ROOT)
anywhere. That variable was a requirement for BBv1 in some cases, but
now it's obsolete... and yet, people cling to it.
-- 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