Boost logo

Boost-Build :

From: Andrei Melnikov (andy.melnikov_at_[hidden])
Date: 2006-10-16 11:48:06


On 16/10/06, Vladimir Prus <ghost_at_[hidden]> wrote:
> On Monday 16 October 2006 19:19, Andrei Melnikov wrote:
> > On 14/10/06, Vladimir Prus <ghost_at_[hidden]> wrote:
> > > On Sunday 08 October 2006 00:04, Vladimir Prus wrote:
> > > > Hi,
> > > > on gcc, to create a PCH one needs a header. On msvc, one needs a header
> > > > and a .cpp file. This can be expressed like this:
> > > >
> > > > pch boost : boost.hpp : <toolset>msvc:<source>boost.cpp ;
> > > >
> > > > which is a bit verbose. How about allowing the user to write:
> > > >
> > > > pch boost : boost.hpp boost.cpp ;
> > > >
> > > > and simply ignore .cpp when it's not needed?
> > >
> > > Getting no comments, I've implement this.
> >
> > The cpp file is just one #include "boost.hpp" line. Can we generate it
> > using the mechanism designed for RSP files?
>
> Good idea! Will things work no matter what directory the .cpp file is
> generated to?
>
As long as the header is on the include search path. But I think it's
better to try first. Maybe even explicit header path will work during
the generation (e.g. /Ycpch.hpp but #include ../../../pch.cpp or
include d:/.../pch.hpp

-- 
Andrei

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