1
0
Эх сурвалжийг харах

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

Thanks to J�rg Riedel for the patch.
David Cole 15 жил өмнө
parent
commit
fbca267331
1 өөрчлөгдсөн 4 нэмэгдсэн , 1 устгасан
  1. 4 1
      Source/cmake.cxx

+ 4 - 1
Source/cmake.cxx

@@ -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;