VS: Only use /MANIFEST if hasManifest is true (#11216)
Thanks to Jrg Riedel for the patch.
This commit is contained in:
parent
98b448ee9e
commit
fbca267331
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue