cmLocalCommonGenerator.cxx 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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(
  13. cmGlobalGenerator* gg, cmMakefile* mf, cmOutputConverter::RelativeRoot wd)
  14. : cmLocalGenerator(gg, mf)
  15. , WorkingDirectory(wd)
  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. // Use the build type given by the user.
  26. this->ConfigName = config;
  27. } else {
  28. // No configuration type given.
  29. this->ConfigName = "";
  30. }
  31. }