cmLocalCommonGenerator.cxx 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2015 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 "cmLocalCommonGenerator.h"
  11. #include "cmMakefile.h"
  12. cmLocalCommonGenerator::cmLocalCommonGenerator(cmGlobalGenerator* gg,
  13. cmLocalGenerator* parent,
  14. cmState::Snapshot snapshot):
  15. cmLocalGenerator(gg, parent, snapshot)
  16. {
  17. }
  18. cmLocalCommonGenerator::~cmLocalCommonGenerator()
  19. {
  20. }
  21. void cmLocalCommonGenerator::SetConfigName()
  22. {
  23. // Store the configuration name that will be generated.
  24. if(const char* config = this->Makefile->GetDefinition("CMAKE_BUILD_TYPE"))
  25. {
  26. // Use the build type given by the user.
  27. this->ConfigName = config;
  28. }
  29. else
  30. {
  31. // No configuration type given.
  32. this->ConfigName = "";
  33. }
  34. }