summaryrefslogtreecommitdiff
path: root/Source/cmGlobalVisualStudio8Generator.cxx
diff options
context:
space:
mode:
authorPatrick Gansterer <paroga@paroga.com>2012-11-19 18:03:36 +0100
committerBrad King <brad.king@kitware.com>2012-11-19 14:10:25 -0500
commit5bdf01184baa0301bd71f486b87d225f07cd80d0 (patch)
tree4d0c6c9ae6fea860df78f8d90397a204282371a6 /Source/cmGlobalVisualStudio8Generator.cxx
parent8d42ab426092f24f07b43ab2717f6071a7dc01e5 (diff)
downloadcmake-5bdf01184baa0301bd71f486b87d225f07cd80d0.tar.gz
VS: Remove GetPlatformName from platform-specific generators
Use the existing ArchitectureId to generate the PlatformName to reduce duplicated information in the classes.
Diffstat (limited to 'Source/cmGlobalVisualStudio8Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio8Generator.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio8Generator.cxx b/Source/cmGlobalVisualStudio8Generator.cxx
index 2697129efa..17f1c37858 100644
--- a/Source/cmGlobalVisualStudio8Generator.cxx
+++ b/Source/cmGlobalVisualStudio8Generator.cxx
@@ -24,6 +24,16 @@ cmGlobalVisualStudio8Generator::cmGlobalVisualStudio8Generator()
}
//----------------------------------------------------------------------------
+const char* cmGlobalVisualStudio8Generator::GetPlatformName() const
+{
+ if (!strcmp(this->ArchitectureId, "X86"))
+ {
+ return "Win32";
+ }
+ return this->ArchitectureId;
+}
+
+//----------------------------------------------------------------------------
///! Create a local generator appropriate to this Global Generator
cmLocalGenerator *cmGlobalVisualStudio8Generator::CreateLocalGenerator()
{