cmLocalCommonGenerator.cxx 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. cmState::Snapshot snapshot):
  14. cmLocalGenerator(gg, snapshot)
  15. {
  16. }
  17. cmLocalCommonGenerator::~cmLocalCommonGenerator()
  18. {
  19. }
  20. void cmLocalCommonGenerator::SetConfigName()
  21. {
  22. // Store the configuration name that will be generated.
  23. if(const char* config = this->Makefile->GetDefinition("CMAKE_BUILD_TYPE"))
  24. {
  25. // Use the build type given by the user.
  26. this->ConfigName = config;
  27. }
  28. else
  29. {
  30. // No configuration type given.
  31. this->ConfigName = "";
  32. }
  33. }