Boost logo

Boost-Build :

From: Alexey Pakhunov (alexeypa_at_[hidden])
Date: 2005-11-23 14:30:11

Reece Dunn wrote:
> The alternative that Alexey suggested of having:
> lib a : ... : <pch>pch_a ;
> lib b : a ... : <pch>pch_b ;
> does not (I think) allow you to add a generator for the PCH file to
> generate the *.pch file.

I think it can work but *.pch will have to be a main target. Also the
feature '<pch>' should be defined as a dependency feature. Then 'a' will
depend on 'stdafx' (see the example below).

pch stdafx : ... ;
lib a : main.cpp ... : <pch>stdafx ;

Though there is another problem. 'main.cpp' should also depend on
stdafx. I don't have any suggestions how this can be solved. :-(

Best regards/Venlig hilsen,
   Alexey Pakhunov.

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