summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-07-28 15:21:50 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-07-28 15:21:50 (GMT)
commiteec4790555c572908fea7c1304105b8a9023a7d3 (patch)
treee4cf71ea0830a613bf5a9155bd6b6d81e6ec2be3 /Source
parent0de464fe36ad0c42d4a51e76a7253f994d4f7b08 (diff)
downloadCMake-eec4790555c572908fea7c1304105b8a9023a7d3.zip
CMake-eec4790555c572908fea7c1304105b8a9023a7d3.tar.gz
CMake-eec4790555c572908fea7c1304105b8a9023a7d3.tar.bz2
BUG: fix for 3557 TargetEnvironment for MIDL Compiler set correctly for 64 bit
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index 8e5c598..784ce0c 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -551,7 +551,18 @@ void cmLocalVisualStudio7Generator::WriteConfiguration(std::ostream& fout,
this->OutputDefineFlags(defineFlags.c_str(), fout);
fout << "\"\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\tTypeLibraryName=\"$(InputName).tlb\"\n";
fout << "\t\t\t\tOutputDirectory=\"$(IntDir)\"\n";