[Scons-users] Dealing with headers appearing from Command builders

Dirk Bächle tshortik at gmx.de
Thu Apr 9 13:26:19 EDT 2015


Matthias,

On 09.04.2015 13:14, mg at ncp-e.com wrote:
> [...]
>
> And it does really work nice the way it is already. It's just the glitch
> that after the headers "appear" from third party packages SCons rebuilds
> certain targets unnecessarily. Actually it would probably help me best
> if I could achieve to tell SCons "just ignore the headers from that
> directory".
>
you can "ignore" search paths for the scanning phase (detecting implicit dependencies) by not adding them to the CPPPATH variable. 
Instead you have to provide your own "-I<path>" flags to CXXFLAGS, or similar for shared objects/libs.
See the "CPPPATH trick" at http://scons.org/wiki/GoFastButton ...

Best regards,

Dirk




More information about the Scons-users mailing list