summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-11-11 17:51:50 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-11-11 17:51:50 (GMT)
commit343f327b32f3244e88cba160748b7adfc8c2bed0 (patch)
tree9b5c807f17f50fb150c55d98ea904b333f1cafdb /Source/cmLocalVisualStudio7Generator.cxx
parent220aea3aee658e59d02c1d6758688a085cf570f4 (diff)
downloadCMake-343f327b32f3244e88cba160748b7adfc8c2bed0.zip
CMake-343f327b32f3244e88cba160748b7adfc8c2bed0.tar.gz
CMake-343f327b32f3244e88cba160748b7adfc8c2bed0.tar.bz2
BUG: fix for 363, VCMIDLTool not used for idl files
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index e3ed475..22da7d8 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -870,13 +870,18 @@ void cmLocalVisualStudio7Generator::WriteVCProjFile(std::ostream& fout,
}
else if(compileFlags.size() || additionalDeps.length())
{
+ const char* aCompilerTool = "VCCLCompilerTool";
+ if((*sf)->GetSourceExtension() == "idl")
+ {
+ aCompilerTool = "VCMIDLTool";
+ }
for(std::vector<std::string>::iterator i = configs->begin();
i != configs->end(); ++i)
{
fout << "\t\t\t\t<FileConfiguration\n"
<< "\t\t\t\t\tName=\"" << *i << "|Win32\">\n"
<< "\t\t\t\t\t<Tool\n"
- << "\t\t\t\t\tName=\"VCCLCompilerTool\"\n";
+ << "\t\t\t\t\tName=\"" << aCompilerTool << "\"\n";
if(compileFlags.size())
{
fout << "\t\t\t\t\tAdditionalOptions=\""