BUG: fix for 3557 TargetEnvironment for MIDL Compiler set correctly for 64 bit

This commit is contained in:
Bill Hoffman 2006-07-28 11:21:50 -04:00
parent 0de464fe36
commit eec4790555
1 changed files with 12 additions and 1 deletions

View File

@ -551,7 +551,18 @@ void cmLocalVisualStudio7Generator::WriteConfiguration(std::ostream& fout,
this->OutputDefineFlags(defineFlags.c_str(), fout); this->OutputDefineFlags(defineFlags.c_str(), fout);
fout << "\"\n"; fout << "\"\n";
fout << "\t\t\t\tMkTypLibCompatible=\"FALSE\"\n"; fout << "\t\t\t\tMkTypLibCompatible=\"FALSE\"\n";
fout << "\t\t\t\tTargetEnvironment=\"1\"\n"; if( this->PlatformName == "x64" )
{
fout << "\t\t\t\tTargetEnvironment=\"3\"\n";
}
else if( this->PlatformName == "ia64" )
{
fout << "\t\t\t\tTargetEnvironment=\"2\"\n";
}
else
{
fout << "\t\t\t\tTargetEnvironment=\"1\"\n";
}
fout << "\t\t\t\tGenerateStublessProxies=\"TRUE\"\n"; fout << "\t\t\t\tGenerateStublessProxies=\"TRUE\"\n";
fout << "\t\t\t\tTypeLibraryName=\"$(InputName).tlb\"\n"; fout << "\t\t\t\tTypeLibraryName=\"$(InputName).tlb\"\n";
fout << "\t\t\t\tOutputDirectory=\"$(IntDir)\"\n"; fout << "\t\t\t\tOutputDirectory=\"$(IntDir)\"\n";