Re: How to use -isystem instead of -I to include directories of third-party projects in scons?

Mats Wichmann <[email protected]> Wed, 30 Nov 2022 09:45:20 -0700
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <[email protected]>
On 11/30/22 00:55, Mats Wichmann wrote:

> Your approach is a valid one, but SCons does not, unfortunately support 
> -isystem fully (issue #3064 exists to record this). You can add it 
> directly to CCFLAGS and it should be emitted to gcc; and the MergeFlags 
> method knows how to do this also, but - unlike for values in CPPPATH - 
> SCons won't look in that directory for internal dependency calculation.

Hey, sorry about this: my original response was clearly made too late at 
night! .. the github issue referenced was for -include, not for 
-isystem, so please ignore my comments about it not being properly handled.

Assuming it was you who posted the matching StackOveflow question, I 
replied there with a slightly updated version of the later answer I sent 
here.  Hopefully you can get this to work out as you want without much 
trouble.