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 | |
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')
-rw-r--r-- | Source/cmGlobalVisualStudio10IA64Generator.h | 2 | ||||
-rw-r--r-- | Source/cmGlobalVisualStudio10Win64Generator.h | 2 | ||||
-rw-r--r-- | Source/cmGlobalVisualStudio11ARMGenerator.h | 2 | ||||
-rw-r--r-- | Source/cmGlobalVisualStudio11Win64Generator.h | 2 | ||||
-rw-r--r-- | Source/cmGlobalVisualStudio8Generator.cxx | 10 | ||||
-rw-r--r-- | Source/cmGlobalVisualStudio8Generator.h | 2 | ||||
-rw-r--r-- | Source/cmGlobalVisualStudio8Win64Generator.h | 2 | ||||
-rw-r--r-- | Source/cmGlobalVisualStudio9IA64Generator.h | 2 | ||||
-rw-r--r-- | Source/cmGlobalVisualStudio9Win64Generator.h | 2 |
9 files changed, 11 insertions, 15 deletions
diff --git a/Source/cmGlobalVisualStudio10IA64Generator.h b/Source/cmGlobalVisualStudio10IA64Generator.h index ae12cc3..3c3325e 100644 --- a/Source/cmGlobalVisualStudio10IA64Generator.h +++ b/Source/cmGlobalVisualStudio10IA64Generator.h @@ -28,8 +28,6 @@ public: return cmGlobalVisualStudio10IA64Generator::GetActualName();} static const char* GetActualName() {return "Visual Studio 10 IA64";} - virtual const char* GetPlatformName() const {return "Itanium";} - /** Get the documentation entry for this generator. */ static void GetDocumentation(cmDocumentationEntry& entry); diff --git a/Source/cmGlobalVisualStudio10Win64Generator.h b/Source/cmGlobalVisualStudio10Win64Generator.h index 66d77a9..30b2164 100644 --- a/Source/cmGlobalVisualStudio10Win64Generator.h +++ b/Source/cmGlobalVisualStudio10Win64Generator.h @@ -28,8 +28,6 @@ public: return cmGlobalVisualStudio10Win64Generator::GetActualName();} static const char* GetActualName() {return "Visual Studio 10 Win64";} - virtual const char* GetPlatformName() const {return "x64";} - /** Get the documentation entry for this generator. */ static void GetDocumentation(cmDocumentationEntry& entry); diff --git a/Source/cmGlobalVisualStudio11ARMGenerator.h b/Source/cmGlobalVisualStudio11ARMGenerator.h index 7596d33..8ca013f 100644 --- a/Source/cmGlobalVisualStudio11ARMGenerator.h +++ b/Source/cmGlobalVisualStudio11ARMGenerator.h @@ -28,8 +28,6 @@ public: return cmGlobalVisualStudio11ARMGenerator::GetActualName();} static const char* GetActualName() {return "Visual Studio 11 ARM";} - virtual const char* GetPlatformName() const {return "ARM";} - /** Get the documentation entry for this generator. */ static void GetDocumentation(cmDocumentationEntry& entry); }; diff --git a/Source/cmGlobalVisualStudio11Win64Generator.h b/Source/cmGlobalVisualStudio11Win64Generator.h index bb33877..515b2a7 100644 --- a/Source/cmGlobalVisualStudio11Win64Generator.h +++ b/Source/cmGlobalVisualStudio11Win64Generator.h @@ -28,8 +28,6 @@ public: return cmGlobalVisualStudio11Win64Generator::GetActualName();} static const char* GetActualName() {return "Visual Studio 11 Win64";} - virtual const char* GetPlatformName() const {return "x64";} - /** Get the documentation entry for this generator. */ static void GetDocumentation(cmDocumentationEntry& entry); }; 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() { diff --git a/Source/cmGlobalVisualStudio8Generator.h b/Source/cmGlobalVisualStudio8Generator.h index ec0d07c..097b796 100644 --- a/Source/cmGlobalVisualStudio8Generator.h +++ b/Source/cmGlobalVisualStudio8Generator.h @@ -33,7 +33,7 @@ public: return cmGlobalVisualStudio8Generator::GetActualName();} static const char* GetActualName() {return "Visual Studio 8 2005";} - virtual const char* GetPlatformName() const {return "Win32";} + const char* GetPlatformName() const; /** Get the documentation entry for this generator. */ static void GetDocumentation(cmDocumentationEntry& entry); diff --git a/Source/cmGlobalVisualStudio8Win64Generator.h b/Source/cmGlobalVisualStudio8Win64Generator.h index 4283c28..2ff2dd0 100644 --- a/Source/cmGlobalVisualStudio8Win64Generator.h +++ b/Source/cmGlobalVisualStudio8Win64Generator.h @@ -34,8 +34,6 @@ public: return cmGlobalVisualStudio8Win64Generator::GetActualName();} static const char* GetActualName() {return "Visual Studio 8 2005 Win64";} - virtual const char* GetPlatformName() const {return "x64";} - /** Get the documentation entry for this generator. */ static void GetDocumentation(cmDocumentationEntry& entry); }; diff --git a/Source/cmGlobalVisualStudio9IA64Generator.h b/Source/cmGlobalVisualStudio9IA64Generator.h index 0e5861a..7af61e7 100644 --- a/Source/cmGlobalVisualStudio9IA64Generator.h +++ b/Source/cmGlobalVisualStudio9IA64Generator.h @@ -34,8 +34,6 @@ public: return cmGlobalVisualStudio9IA64Generator::GetActualName();} static const char* GetActualName() {return "Visual Studio 9 2008 IA64";} - virtual const char* GetPlatformName() const {return "Itanium";} - /** Get the documentation entry for this generator. */ static void GetDocumentation(cmDocumentationEntry& entry); }; diff --git a/Source/cmGlobalVisualStudio9Win64Generator.h b/Source/cmGlobalVisualStudio9Win64Generator.h index 713c402..c6b74a0 100644 --- a/Source/cmGlobalVisualStudio9Win64Generator.h +++ b/Source/cmGlobalVisualStudio9Win64Generator.h @@ -34,8 +34,6 @@ public: return cmGlobalVisualStudio9Win64Generator::GetActualName();} static const char* GetActualName() {return "Visual Studio 9 2008 Win64";} - virtual const char* GetPlatformName() const {return "x64";} - /** Get the documentation entry for this generator. */ static void GetDocumentation(cmDocumentationEntry& entry); }; |