mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-24 15:38:54 -06:00
VS: Only use /MANIFEST if hasManifest is true (#11216)
Thanks to Jrg Riedel for the patch.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user