1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmGlobalVisualStudio9Win64Generator.cxx,v $
6 Date: $Date: 2007-12-17 19:43:11 $
7 Version: $Revision: 1.1 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #include "cmGlobalVisualStudio9Win64Generator.h"
18 #include "cmLocalVisualStudio7Generator.h"
19 #include "cmMakefile.h"
22 cmGlobalVisualStudio9Win64Generator::cmGlobalVisualStudio9Win64Generator()
24 this->PlatformName
= "x64";
27 ///! Create a local generator appropriate to this Global Generator
28 cmLocalGenerator
*cmGlobalVisualStudio9Win64Generator::CreateLocalGenerator()
30 cmLocalVisualStudio7Generator
*lg
= new cmLocalVisualStudio7Generator
;
32 lg
->SetPlatformName(this->PlatformName
.c_str());
33 lg
->SetExtraFlagTable(this->GetExtraFlagTableVS8());
34 lg
->SetGlobalGenerator(this);
38 //----------------------------------------------------------------------------
39 void cmGlobalVisualStudio9Win64Generator
40 ::GetDocumentation(cmDocumentationEntry
& entry
) const
42 entry
.Name
= this->GetName();
43 entry
.Brief
= "Generates Visual Studio 9 2008 Win64 project files.";
47 void cmGlobalVisualStudio9Win64Generator
48 ::EnableLanguage(std::vector
<std::string
>const & lang
,
49 cmMakefile
*mf
, bool optional
)
51 mf
->AddDefinition("CMAKE_FORCE_WIN64", "TRUE");
52 cmGlobalVisualStudio9Generator::EnableLanguage(lang
, mf
, optional
);