diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index 5d55adca9..e3ed47509 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -434,13 +434,16 @@ void cmLocalVisualStudio7Generator::WriteConfiguration(std::ostream& fout,
fout << "\t\t\t\n";
fout << "\t\t\tConvertToXMLOutputPath(i->c_str());
fout << ipath << ";";
}
- fout << "\"\n/>\n";
+ fout << "\"\n"
+ << "\t\t\t\tPreprocessorDefinitions=\"" << pre;
+ this->OutputDefineFlags(fout);
+ fout << "\" />\n";
fout << "\t\t\t\n";
this->OutputTargetRules(fout, target, libName);
this->OutputBuildTool(fout, configName, libName, target);