diff options
author | Patrick Gansterer <paroga@paroga.com> | 2012-07-21 13:37:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-08-22 19:08:40 (GMT) |
commit | 2c7a451de003782b1ba5e47ab377f33f1fa5c4e5 (patch) | |
tree | 8d5700d778df484bbeab7eb5a893fe346373fce8 /Source/cmGlobalVisualStudio11ARMGenerator.cxx | |
parent | addefc2ae3b33a75a7152730146b46b319118a24 (diff) | |
download | CMake-2c7a451de003782b1ba5e47ab377f33f1fa5c4e5.zip CMake-2c7a451de003782b1ba5e47ab377f33f1fa5c4e5.tar.gz CMake-2c7a451de003782b1ba5e47ab377f33f1fa5c4e5.tar.bz2 |
VS: Cleanup AddPlatformDefinitions() of Visual Studio generators
Move adding of definitions into cmGlobalVisualStudioGenerator to
share code and avoid duplicate architecture string literals.
Diffstat (limited to 'Source/cmGlobalVisualStudio11ARMGenerator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio11ARMGenerator.cxx | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/Source/cmGlobalVisualStudio11ARMGenerator.cxx b/Source/cmGlobalVisualStudio11ARMGenerator.cxx index fef1aba..efd71c6 100644 --- a/Source/cmGlobalVisualStudio11ARMGenerator.cxx +++ b/Source/cmGlobalVisualStudio11ARMGenerator.cxx @@ -14,19 +14,16 @@ #include "cmake.h" //---------------------------------------------------------------------------- -void cmGlobalVisualStudio11ARMGenerator -::GetDocumentation(cmDocumentationEntry& entry) const +cmGlobalVisualStudio11ARMGenerator::cmGlobalVisualStudio11ARMGenerator() { - entry.Name = this->GetName(); - entry.Brief = "Generates Visual Studio 11 ARM project files."; - entry.Full = ""; + this->ArchitectureId = "ARM"; } //---------------------------------------------------------------------------- void cmGlobalVisualStudio11ARMGenerator -::AddPlatformDefinitions(cmMakefile* mf) +::GetDocumentation(cmDocumentationEntry& entry) const { - this->cmGlobalVisualStudio11Generator::AddPlatformDefinitions(mf); - mf->AddDefinition("MSVC_C_ARCHITECTURE_ID", "ARM"); - mf->AddDefinition("MSVC_CXX_ARCHITECTURE_ID", "ARM"); + entry.Name = this->GetName(); + entry.Brief = "Generates Visual Studio 11 ARM project files."; + entry.Full = ""; } |