summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio8Generator.cxx
diff options
context:
space:
mode:
authorPatrick Gansterer <paroga@paroga.com>2010-08-22 19:23:11 (GMT)
committerBrad King <brad.king@kitware.com>2010-08-26 20:39:01 (GMT)
commitef4394defa22ba4288731ae65285c2f33e9e360a (patch)
tree09d288877891df1cef4e702b40ec263d0dd75596 /Source/cmGlobalVisualStudio8Generator.cxx
parent4fec681fa7cdc89a4aa40c95fa0156c566ff8722 (diff)
downloadCMake-ef4394defa22ba4288731ae65285c2f33e9e360a.zip
CMake-ef4394defa22ba4288731ae65285c2f33e9e360a.tar.gz
CMake-ef4394defa22ba4288731ae65285c2f33e9e360a.tar.bz2
VS: Add ArchitectureId to VS 8 and 9 generators
Avoid duplicate architecture string literals.
Diffstat (limited to 'Source/cmGlobalVisualStudio8Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio8Generator.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudio8Generator.cxx b/Source/cmGlobalVisualStudio8Generator.cxx
index c4de91e..2612a08 100644
--- a/Source/cmGlobalVisualStudio8Generator.cxx
+++ b/Source/cmGlobalVisualStudio8Generator.cxx
@@ -21,6 +21,7 @@ cmGlobalVisualStudio8Generator::cmGlobalVisualStudio8Generator()
{
this->FindMakeProgramFile = "CMakeVS8FindMake.cmake";
this->ProjectConfigurationSectionName = "ProjectConfigurationPlatforms";
+ this->ArchitectureId = "X86";
}
//----------------------------------------------------------------------------
@@ -55,8 +56,8 @@ void cmGlobalVisualStudio8Generator
//----------------------------------------------------------------------------
void cmGlobalVisualStudio8Generator::AddPlatformDefinitions(cmMakefile* mf)
{
- mf->AddDefinition("MSVC_C_ARCHITECTURE_ID", "X86");
- mf->AddDefinition("MSVC_CXX_ARCHITECTURE_ID", "X86");
+ mf->AddDefinition("MSVC_C_ARCHITECTURE_ID", this->ArchitectureId);
+ mf->AddDefinition("MSVC_CXX_ARCHITECTURE_ID", this->ArchitectureId);
mf->AddDefinition("MSVC80", "1");
}