cmGlobalVisualStudio9Win64Generator.cxx 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #include "cmGlobalVisualStudio9Win64Generator.h"
  11. #include "cmLocalVisualStudio7Generator.h"
  12. #include "cmMakefile.h"
  13. cmGlobalVisualStudio9Win64Generator::cmGlobalVisualStudio9Win64Generator()
  14. {
  15. this->PlatformName = "x64";
  16. }
  17. ///! Create a local generator appropriate to this Global Generator
  18. cmLocalGenerator *cmGlobalVisualStudio9Win64Generator::CreateLocalGenerator()
  19. {
  20. cmLocalVisualStudio7Generator *lg = new cmLocalVisualStudio7Generator;
  21. lg->SetVersion9();
  22. lg->SetPlatformName(this->PlatformName.c_str());
  23. lg->SetExtraFlagTable(this->GetExtraFlagTableVS8());
  24. lg->SetGlobalGenerator(this);
  25. return lg;
  26. }
  27. //----------------------------------------------------------------------------
  28. void cmGlobalVisualStudio9Win64Generator
  29. ::GetDocumentation(cmDocumentationEntry& entry) const
  30. {
  31. entry.Name = this->GetName();
  32. entry.Brief = "Generates Visual Studio 9 2008 Win64 project files.";
  33. entry.Full = "";
  34. }
  35. void cmGlobalVisualStudio9Win64Generator
  36. ::EnableLanguage(std::vector<std::string>const & lang,
  37. cmMakefile *mf, bool optional)
  38. {
  39. mf->AddDefinition("CMAKE_FORCE_WIN64", "TRUE");
  40. cmGlobalVisualStudio9Generator::EnableLanguage(lang, mf, optional);
  41. }