List Info

Thread: serialization library as dependency




serialization library as dependency
user name
2006-06-26 15:33:05
"Reece Dunn" <msclrhdhotmail.com> writes:

> David Abrahams wrote:
>> "Felipe Magno de Almeida"
<felipe.m.almeidagmail.com> 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

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )