[native]: how to use -isystem instead of -I for prebuilt libs

With the gcc toolchain, I have some prebuilt libraries for which I’d like to disable warnings about unused parameters and so on. This requires that those include paths in gcc should be specified using -isystem instead of -I.

How do I get gradle to do this for those dependencies?

At the moment, I’m explicitly adding this argument to cppCompiler.args so that the command line includes both the -I directive for these folders and the -isystem argument. Is this the only way?