diff --git a/Source/cmake.cxx b/Source/cmake.cxx index bab0aaf834..4ade5da586 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -4108,7 +4108,10 @@ int cmake::VisualStudioLinkNonIncremental(std::vector& 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;