diff options
author | Patrick Gansterer <paroga@paroga.com> | 2012-11-19 17:03:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-11-19 19:10:25 (GMT) |
commit | 5bdf01184baa0301bd71f486b87d225f07cd80d0 (patch) | |
tree | 4d0c6c9ae6fea860df78f8d90397a204282371a6 /Source/cmGlobalVisualStudio8Generator.cxx | |
parent | 8d42ab426092f24f07b43ab2717f6071a7dc01e5 (diff) | |
download | CMake-5bdf01184baa0301bd71f486b87d225f07cd80d0.zip CMake-5bdf01184baa0301bd71f486b87d225f07cd80d0.tar.gz CMake-5bdf01184baa0301bd71f486b87d225f07cd80d0.tar.bz2 |
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.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio8Generator.cxx b/Source/cmGlobalVisualStudio8Generator.cxx index 2697129..17f1c37 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() { |