Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-03-30 10:26:15


On Thursday 30 March 2006 18:36, John Maddock wrote:
> I'm trying to build some simple demos with bbv2, but the Boost headers
> aren't automatically placed in the include path, even when using:
>
> run myfile ; # Doesn't find Boost headers!
>
> So then I tried adding <include>$(BOOST_ROOT) but that doesn't work either
> - apparently BOOST_ROOT isn't set by bbv2 if it's not set by the user.
>
> So.... how do I find the Boost header path?
>
> Or how about something like:
>
> using boost ;
>
> which would just do the right thing?

You should using something like this:

  projec yours :
     requirements <use>path_to_boost//headers ;

  run myfile ;

Or you can have:

  run myfile path_to_boost//headers ;

This is not fully covered in docs, I'll try to update

http://www.boost.org/boost-build2/doc/html/bbv2/faq/header-only-libraries.html

with information about *using* header-only libraries, as opposed to declaring
them.

Thanks,
Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2

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