diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index 02db5aa3b..e2a25310a 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -617,7 +617,22 @@ void cmLocalVisualStudio7Generator::WriteConfiguration(std::ostream& fout,
<< "\t\t\t\tPreprocessorDefinitions=\"" << pre;
this->OutputDefineFlags(defineFlags.c_str(), fout);
fout << "\" />\n";
- fout << "\t\t\t\n";
+
+ fout << "\t\t\tOutputDefineFlags(defineFlags.c_str(), fout);
+ fout << "\"\n";
+ fout << "\t\t\t\tMkTypLibCompatible=\"FALSE\"\n";
+ fout << "\t\t\t\tTargetEnvironment=\"1\"\n";
+ fout << "\t\t\t\tGenerateStublessProxies=\"TRUE\"\n";
+ fout << "\t\t\t\tTypeLibraryName=\"$(InputName).tlb\"\n";
+ fout << "\t\t\t\tOutputDirectory=\"$(IntDir)\"\n";
+ fout << "\t\t\t\tHeaderFileName=\"$(InputName).h\"\n";
+ fout << "\t\t\t\tDLLDataFileName=\"\"\n";
+ fout << "\t\t\t\tInterfaceIdentifierFileName=\"$(InputName)_i.c\"\n";
+ fout << "\t\t\t\tProxyFileName=\"$(InputName)_p.c\"/>\n";
+ // end of OutputTargetRules(fout, target, libName);
this->OutputBuildTool(fout, configName, libName, target);
fout << "\t\t\n";