diff options
author | Patrick Gansterer <paroga@paroga.com> | 2012-11-19 16:21:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-11-19 17:54:57 (GMT) |
commit | 6f439b30cb0b1a76c8e7ee8f169a0415a8a47c70 (patch) | |
tree | 90741f846b81f40885aa14523d5df33304eb9287 /Source/cmGlobalVisualStudioGenerator.cxx | |
parent | 5170a8800ff4613dd41f6995e8efd43df36a40bd (diff) | |
download | CMake-6f439b30cb0b1a76c8e7ee8f169a0415a8a47c70.zip CMake-6f439b30cb0b1a76c8e7ee8f169a0415a8a47c70.tar.gz CMake-6f439b30cb0b1a76c8e7ee8f169a0415a8a47c70.tar.bz2 |
VS: Remove AddPlatformDefinitions from platform-specific generators
Move the logic for handling platform specific defines from the
subclasses into the cmGlobalVisualStudioGenerator base class.
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudioGenerator.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx index ea6757d..a517351 100644 --- a/Source/cmGlobalVisualStudioGenerator.cxx +++ b/Source/cmGlobalVisualStudioGenerator.cxx @@ -22,6 +22,7 @@ cmGlobalVisualStudioGenerator::cmGlobalVisualStudioGenerator() { this->ArchitectureId = "X86"; + this->AdditionalPlatformDefinition = NULL; } //---------------------------------------------------------------------------- @@ -493,6 +494,11 @@ void cmGlobalVisualStudioGenerator::AddPlatformDefinitions(cmMakefile* mf) { mf->AddDefinition("MSVC_C_ARCHITECTURE_ID", this->ArchitectureId); mf->AddDefinition("MSVC_CXX_ARCHITECTURE_ID", this->ArchitectureId); + + if(this->AdditionalPlatformDefinition) + { + mf->AddDefinition(this->AdditionalPlatformDefinition, "TRUE"); + } } //---------------------------------------------------------------------------- |