|
Boost-Build : |
From: Alexey Pakhunov (alexeypa_at_[hidden])
Date: 2005-11-21 02:57:13
Reece Dunn wrote:
>>There is one more problem. If a target that uses PCH depends on another
>>target using PCH the top most one gets two <pch-header> and two
>><pch-file> properties - one from each target. For example:
> Argh!
I have an idea. I guess we can use almost the same approach as used for
def files as soon as we do cast anyway. If we put reference to PCH
target to a target requirements it will not be propagated to dependents
of it. I.e.
pch stdafx
:
[ cast _ pcheader : stdafx.h ] stdafx.cpp
;
lib core
:
main.cpp
:
<link>shared
<def-file>core.def
<pch>stdafx
;
This will require some logic that will extract 'stdafx.h' from the PCH
target in order to put it into the command line.
Best regards/Venlig hilsen,
Alexey Pakhunov.
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