Imported Upstream version 2.8.10.2
[platform/upstream/cmake.git] / Source / cmGlobalVisualStudio10Win64Generator.cxx
1 /*============================================================================
2   CMake - Cross Platform Makefile Generator
3   Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
4
5   Distributed under the OSI-approved BSD License (the "License");
6   see accompanying file Copyright.txt for details.
7
8   This software is distributed WITHOUT ANY WARRANTY; without even the
9   implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10   See the License for more information.
11 ============================================================================*/
12 #include "cmGlobalVisualStudio10Win64Generator.h"
13 #include "cmMakefile.h"
14 #include "cmake.h"
15
16 //----------------------------------------------------------------------------
17 cmGlobalVisualStudio10Win64Generator::cmGlobalVisualStudio10Win64Generator()
18 {
19   this->ArchitectureId = "x64";
20 }
21
22 //----------------------------------------------------------------------------
23 void cmGlobalVisualStudio10Win64Generator
24 ::GetDocumentation(cmDocumentationEntry& entry) const
25 {
26   entry.Name = this->GetName();
27   entry.Brief = "Generates Visual Studio 10 Win64 project files.";
28   entry.Full = "";
29 }
30
31 //----------------------------------------------------------------------------
32 void cmGlobalVisualStudio10Win64Generator
33 ::AddPlatformDefinitions(cmMakefile* mf)
34 {
35   this->cmGlobalVisualStudio10Generator::AddPlatformDefinitions(mf);
36   mf->AddDefinition("CMAKE_FORCE_WIN64", "TRUE");
37 }
38
39 //----------------------------------------------------------------------------
40 void cmGlobalVisualStudio10Win64Generator
41 ::EnableLanguage(std::vector<std::string> const& languages,
42                  cmMakefile* mf, bool optional)
43 {
44   if(this->IsExpressEdition() && !this->Find64BitTools(mf))
45     {
46     return;
47     }
48   this->cmGlobalVisualStudio10Generator
49     ::EnableLanguage(languages, mf, optional);
50 }