summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-10-28 16:55:40 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-10-28 16:55:40 (GMT)
commit77afae681aaf4cfab6bb3e72836c66760ce0dade (patch)
tree4efc247515ab9a2a231e2e696724fe7944416a78 /Source/cmLocalVisualStudio7Generator.cxx
parent3e2c1f347701155f2713ab144f3c7b3cf00d8aca (diff)
downloadCMake-77afae681aaf4cfab6bb3e72836c66760ce0dade.zip
CMake-77afae681aaf4cfab6bb3e72836c66760ce0dade.tar.gz
CMake-77afae681aaf4cfab6bb3e72836c66760ce0dade.tar.bz2
BUG: add preprocessor flags to resource compiler
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index 5d55adc..e3ed475 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -434,13 +434,16 @@ void cmLocalVisualStudio7Generator::WriteConfiguration(std::ostream& fout,
fout << "\t\t\t<Tool\n\t\t\t\tName=\"VCCustomBuildTool\"/>\n";
fout << "\t\t\t<Tool\n\t\t\t\tName=\"VCResourceCompilerTool\"\n"
- << "AdditionalIncludeDirectories=\"";
+ << "\t\t\t\tAdditionalIncludeDirectories=\"";
for(i = includes.begin();i != includes.end(); ++i)
{
std::string ipath = this->ConvertToXMLOutputPath(i->c_str());
fout << ipath << ";";
}
- fout << "\"\n/>\n";
+ fout << "\"\n"
+ << "\t\t\t\tPreprocessorDefinitions=\"" << pre;
+ this->OutputDefineFlags(fout);
+ fout << "\" />\n";
fout << "\t\t\t<Tool\n\t\t\t\tName=\"VCMIDLTool\"/>\n";
this->OutputTargetRules(fout, target, libName);
this->OutputBuildTool(fout, configName, libName, target);