summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio9Win64Generator.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/cmGlobalVisualStudio9Win64Generator.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/cmGlobalVisualStudio9Win64Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio9Win64Generator.cxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/Source/cmGlobalVisualStudio9Win64Generator.cxx b/Source/cmGlobalVisualStudio9Win64Generator.cxx
index f58cde5..37288b6 100644
--- a/Source/cmGlobalVisualStudio9Win64Generator.cxx
+++ b/Source/cmGlobalVisualStudio9Win64Generator.cxx
@@ -17,6 +17,7 @@
cmGlobalVisualStudio9Win64Generator::cmGlobalVisualStudio9Win64Generator()
{
this->ArchitectureId = "x64";
+ this->AdditionalPlatformDefinition = "CMAKE_FORCE_WIN64";
}
//----------------------------------------------------------------------------
@@ -27,11 +28,3 @@ void cmGlobalVisualStudio9Win64Generator
entry.Brief = "Generates Visual Studio 9 2008 Win64 project files.";
entry.Full = "";
}
-
-//----------------------------------------------------------------------------
-void cmGlobalVisualStudio9Win64Generator
-::AddPlatformDefinitions(cmMakefile* mf)
-{
- cmGlobalVisualStudio9Generator::AddPlatformDefinitions(mf);
- mf->AddDefinition("CMAKE_FORCE_WIN64", "TRUE");
-}