cmVSLink: LinkIncremental can fail if an antivirus is processing executable embedding the manifest file
We have users having a hard time compiling Qt due to:
mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file "qtbase\bin\cmake_automoc_parser.exe". The process cannot access the file because it is being used by another process.
[976/9703] Automatic MOC for target Core
ninja: build stopped: subcommand failed.
Having a few retries for:
// Link incrementally again to use the updated resource.
if (!RunCommand("FINAL LINK", this->LinkCommand, this->Verbose,
FORMAT_DECIMAL)) {
return -1;
}
Fixes the issue.