BUG: fix for 363, VCMIDLTool not used for idl files
This commit is contained in:
parent
220aea3aee
commit
343f327b32
@ -870,13 +870,18 @@ void cmLocalVisualStudio7Generator::WriteVCProjFile(std::ostream& fout,
|
|||||||
}
|
}
|
||||||
else if(compileFlags.size() || additionalDeps.length())
|
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();
|
for(std::vector<std::string>::iterator i = configs->begin();
|
||||||
i != configs->end(); ++i)
|
i != configs->end(); ++i)
|
||||||
{
|
{
|
||||||
fout << "\t\t\t\t<FileConfiguration\n"
|
fout << "\t\t\t\t<FileConfiguration\n"
|
||||||
<< "\t\t\t\t\tName=\"" << *i << "|Win32\">\n"
|
<< "\t\t\t\t\tName=\"" << *i << "|Win32\">\n"
|
||||||
<< "\t\t\t\t\t<Tool\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())
|
if(compileFlags.size())
|
||||||
{
|
{
|
||||||
fout << "\t\t\t\t\tAdditionalOptions=\""
|
fout << "\t\t\t\t\tAdditionalOptions=\""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user