Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-11-30 01:43:47


On Tuesday 29 November 2005 22:28, David Abrahams wrote:

> > project testing
> >
> > : requirements <include>$(includedir)
> > : usage-requirements <include>$(includedir) ;
> >
> > If the project defines a target say a "lib" then I'd reference that
> > and be done with it, but at the moment there is no target as its all
> > header based software, but I don't appear to get the needed <include>
>
> You can define a header-only library... with no headers in it ;-)
> Check out the alias target in libs/test/build/Jamfile.v2
>
> Volodya, didn't we define an interface for making header-only libs
> using the "lib" rule? Is that available yet?

I can't remember, sorry. What was the interface.

And yes, in the meanwhile

   alias header-only-lib
         : # no sources
         : # no requirements
         : # no default-build
         : <include>whatever
         ;

should work.

- Volodya


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