mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-06 04:03:27 +03:00
VS: Only use /MANIFEST if hasManifest is true (#11216)
Thanks to Jörg Riedel for the patch.
This commit is contained in:
1 parent
98b448ee9e
commit
fbca267331
1 file changed
+4
-1
+4
-1
@@ -4108,7 +4108,10 @@ int cmake::VisualStudioLinkNonIncremental(std::vector<std::string>& args,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
// Run the link command as given
|
// Run the link command as given
|
||||||
linkCommand.push_back("/MANIFEST");
|
if (hasManifest)
|
||||||
|
{
|
||||||
|
linkCommand.push_back("/MANIFEST");
|
||||||
|
}
|
||||||
if(!cmake::RunCommand("LINK", linkCommand, verbose))
|
if(!cmake::RunCommand("LINK", linkCommand, verbose))
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in new issue
Block a user