Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2006-01-20 17:47:42


Vladimir Prus <ghost_at_[hidden]> writes:

> On Tuesday 17 January 2006 03:47, David Abrahams wrote:
>
>> > This is a recurring question, so I've added it to docs:
>> > http://boost.org/boost-build2/doc/html/bbv2/faq/header-only-libraries.htm
>> >l
>> >
>> > can you take a look and tell if what I wrote is clear enough or needs
>> > further clarification?
>>
>> Why don't we just implement my suggestion from
>> http://article.gmane.org/gmane.comp.lib.boost.build/11166 so we can
>> stop clarifying this point?
>
> Currently
>
> lib a ;
>
> is interpreted as searched library named "a", that is you'll get -liba in
> command line on linux, and a.lib on Windows. So your proposal conflicts with
> the current semantics (proposed by you, as well). Using presense or absense
> of usage-requirements in "lib" to determine if that's header-only library or
> not does not seem reliable to me.

Why not? To me it seems reliable and only slightly obtuse.

Some other possibilities:

     lib a : : prebuilt ;
     lib a : : system ;
     lib a : : search ; # I like this one
     lib b : : header-only ; # And this one

     prebuilt-lib a ;
     header-only-lib b;

-- 
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