summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudioGenerator.cxx
diff options
context:
space:
mode:
authorPatrick Gansterer <paroga@paroga.com>2012-11-19 16:21:47 (GMT)
committerBrad King <brad.king@kitware.com>2012-11-19 17:54:57 (GMT)
commit6f439b30cb0b1a76c8e7ee8f169a0415a8a47c70 (patch)
tree90741f846b81f40885aa14523d5df33304eb9287 /Source/cmGlobalVisualStudioGenerator.cxx
parent5170a8800ff4613dd41f6995e8efd43df36a40bd (diff)
downloadCMake-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.cxx6
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");
+ }
}
//----------------------------------------------------------------------------