diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2010-12-21 14:17:21 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2010-12-21 14:20:57 (GMT) |
commit | 16e7d4ba2c82081afea5af05bc6360b281d5e0c3 (patch) | |
tree | 95241b18ac6b3bc0e7db8bc1f846ab4b8e7f1148 /Source | |
parent | 4c88a8622dd25bc3d630f2d35e3a4acca9a7a5a2 (diff) | |
download | CMake-16e7d4ba2c82081afea5af05bc6360b281d5e0c3.zip CMake-16e7d4ba2c82081afea5af05bc6360b281d5e0c3.tar.gz CMake-16e7d4ba2c82081afea5af05bc6360b281d5e0c3.tar.bz2 |
Add flags to resource builds on vs 2010 with a test.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index f78aeec..ebe36f2 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -1139,10 +1139,13 @@ OutputIncludes(std::vector<std::string> const & includes) void cmVisualStudio10TargetGenerator:: -WriteRCOptions(std::string const& , +WriteRCOptions(std::string const& configName, std::vector<std::string> const & includes) { this->WriteString("<ResourceCompile>\n", 2); + Options& clOptions = *(this->ClOptions[configName]); + clOptions.OutputPreprocessorDefinitions(*this->BuildFileStream, " ", + "\n"); this->OutputIncludes(includes); this->WriteString("</ResourceCompile>\n", 2); } |