Tests: Isolate RunCMake.LinkWarningAsError from -Werror flags in environment

Fixes: #26836
1 file changed