[Scons-users] How to use -isystem instead of -I to include directories of third-party projects in scons?

Mats Wichmann mats at wichmann.us
Wed Nov 30 11:45:20 EST 2022


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.




More information about the Scons-users mailing list