cmMakefileGenerator.cxx 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*=========================================================================
  2. Program: Insight Segmentation & Registration Toolkit
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Insight Consortium. All rights reserved.
  8. See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #include "cmMakefileGenerator.h"
  14. // static list of registered generators
  15. std::map<cmStdString, bool> cmMakefileGenerator::s_LanguageEnabled;
  16. void cmMakefileGenerator::SetMakefile(cmMakefile* mf)
  17. {
  18. m_Makefile = mf;
  19. }
  20. void cmMakefileGenerator::SetLanguageEnabled(const char* l)
  21. {
  22. s_LanguageEnabled[l] = true;
  23. }
  24. bool cmMakefileGenerator::GetLanguageEnabled(const char* l)
  25. {
  26. return (s_LanguageEnabled.count(l) > 0);
  27. }
  28. void cmMakefileGenerator::ClearEnabledLanguages()
  29. {
  30. s_LanguageEnabled.clear();
  31. }