Imported Upstream version 2.8.9
[platform/upstream/cmake.git] / Source / cmGlobalVisualStudio10IA64Generator.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 "cmGlobalVisualStudio10IA64Generator.h"
13 #include "cmMakefile.h"
14 #include "cmake.h"
15
16 //----------------------------------------------------------------------------
17 cmGlobalVisualStudio10IA64Generator::cmGlobalVisualStudio10IA64Generator()
18 {
19 }
20
21 //----------------------------------------------------------------------------
22 void cmGlobalVisualStudio10IA64Generator
23 ::GetDocumentation(cmDocumentationEntry& entry) const
24 {
25   entry.Name = this->GetName();
26   entry.Brief = "Generates Visual Studio 10 Itanium project files.";
27   entry.Full = "";
28 }
29
30 //----------------------------------------------------------------------------
31 void cmGlobalVisualStudio10IA64Generator
32 ::AddPlatformDefinitions(cmMakefile* mf)
33 {
34   this->cmGlobalVisualStudio10Generator::AddPlatformDefinitions(mf);
35   mf->AddDefinition("CMAKE_FORCE_IA64", "TRUE");
36   mf->AddDefinition("MSVC_C_ARCHITECTURE_ID", "x64");
37   mf->AddDefinition("MSVC_CXX_ARCHITECTURE_ID", "x64");
38 }
39
40 //----------------------------------------------------------------------------
41 void cmGlobalVisualStudio10IA64Generator
42 ::EnableLanguage(std::vector<std::string> const& languages,
43                  cmMakefile* mf, bool optional)
44 {
45   if(this->IsExpressEdition() && !this->Find64BitTools(mf))
46     {
47     return;
48     }
49   this->cmGlobalVisualStudio10Generator
50     ::EnableLanguage(languages, mf, optional);
51 }