VS: Only use /MANIFEST if hasManifest is true (#11216)

Thanks to Jrg Riedel for the patch.
This commit is contained in:
David Cole 2011-02-09 11:42:34 -05:00
parent 98b448ee9e
commit fbca267331
1 changed files with 4 additions and 1 deletions

View File

@ -4108,7 +4108,10 @@ int cmake::VisualStudioLinkNonIncremental(std::vector<std::string>& args,
return -1;
}
// Run the link command as given
linkCommand.push_back("/MANIFEST");
if (hasManifest)
{
linkCommand.push_back("/MANIFEST");
}
if(!cmake::RunCommand("LINK", linkCommand, verbose))
{
return -1;