Mark linked libs as system libs

(BrainStone) #1


Right now if I want to add compile/link against a library they get their header path added under gcc with the -I parameter. Now this causes all warnings the headers have to appear in my code. This can be suppressed by using the -isystem flag instead. Is there a way I can declare a dependency so that it gets added to the compiler via the -isystem flag instead of the -I flag?

What I have currently:

lib library: "xxx", linkage: "static"

What I’d love to have:

lib library: "xxx", linkage: "static", system: true

If there’s already a way to do that (so that it’s still working on all platforms), please let me know. If not I think that would be a nice thing to have!