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/cmGlobalVisualStudio10Win64Generator.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/cmGlobalVisualStudio10Win64Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio10Win64Generator.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Source/cmGlobalVisualStudio10Win64Generator.cxx b/Source/cmGlobalVisualStudio10Win64Generator.cxx index d9db731..0352a46 100644 --- a/Source/cmGlobalVisualStudio10Win64Generator.cxx +++ b/Source/cmGlobalVisualStudio10Win64Generator.cxx @@ -17,6 +17,7 @@ cmGlobalVisualStudio10Win64Generator::cmGlobalVisualStudio10Win64Generator() { this->ArchitectureId = "x64"; + this->AdditionalPlatformDefinition = "CMAKE_FORCE_WIN64"; } //---------------------------------------------------------------------------- @@ -30,14 +31,6 @@ void cmGlobalVisualStudio10Win64Generator //---------------------------------------------------------------------------- void cmGlobalVisualStudio10Win64Generator -::AddPlatformDefinitions(cmMakefile* mf) -{ - this->cmGlobalVisualStudio10Generator::AddPlatformDefinitions(mf); - mf->AddDefinition("CMAKE_FORCE_WIN64", "TRUE"); -} - -//---------------------------------------------------------------------------- -void cmGlobalVisualStudio10Win64Generator ::EnableLanguage(std::vector<std::string> const& languages, cmMakefile* mf, bool optional) { |