Boost logo

Boost-Build :

From: debionne_at_[hidden]
Date: 2006-10-27 10:53:19

I'm just starting some tests of the PCH functionnalities of bbv2 and I'm
facing with the following problem :

I have a lib, compiled with pch :

cpp-pch foo-pch
   : # sources
   : # requiremnts

lib libfoo
   : foo-pch

This works fine, which is already nice !
Then I use libfoo in an exe target :

exe foo
   : main.cpp
   : <source>libfoo

The compilation of main.cpp fails with the following message :
fatal error C1010: unexpected end of file while looking for precompiled
header. Did you forget to add '#include "foo_pch.h"' to your source?

But actually, the compiler should not be looking for PCH, since my
main.cpp does not need any of the headers used by the lib. It seems that
the -Yu flag is set/propogated while, IMO, it should not. So is this
expected ?

I'm using a fresh checkout from CVS.
Thank you for yout help,

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at