diff -u -r1.137 cmLocalVisualStudio7Generator.cxx
--- Source/cmLocalVisualStudio7Generator.cxx    13 Jun 2006 13:46:10 -0000      1.137
+++ Source/cmLocalVisualStudio7Generator.cxx    16 Jun 2006 01:01:26 -0000
@@ -559,6 +559,17 @@
   fout << "\t\t\t\tProxyFileName=\"$(InputName)_p.c\"/>\n";
   // end of <Tool Name=VCMIDLTool

+  // If we are building a version 8 project file, add a flag telling the
+  // manifest tool to use a workaround for FAT32 file systems, which can cause
+  // an empty manifest to be embedded into the resulting executable.
+  // See CMake bug #2617.
+  if ( this->Version == 8 )
+    {
+    fout << "\t\t\t<Tool\n\t\t\t\tName=\"VCManifestTool\"\n"
+         << "\t\t\t\tUseFAT32Workaround=\"true\"\n"
+         << "\t\t\t/>\n";
+    }
+
   this->OutputTargetRules(fout, target, libName);
   this->OutputBuildTool(fout, configName, libName, target);
   fout << "\t\t</Configuration>\n";

