CMake/Source/cmMakefileGenerator.cxx

47 lines
1.1 KiB
C++
Raw Normal View History

2001-01-11 22:55:47 +03:00
/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
2002-01-21 23:30:43 +03:00
Copyright (c) 2002 Insight Consortium. All rights reserved.
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
2001-01-11 22:55:47 +03:00
=========================================================================*/
#include "cmMakefileGenerator.h"
2001-09-07 01:28:24 +04:00
// static list of registered generators
std::map<cmStdString, bool> cmMakefileGenerator::s_LanguageEnabled;
2001-09-07 01:28:24 +04:00
void cmMakefileGenerator::SetMakefile(cmMakefile* mf)
{
m_Makefile = mf;
}
void cmMakefileGenerator::SetLanguageEnabled(const char* l)
{
s_LanguageEnabled[l] = true;
}
bool cmMakefileGenerator::GetLanguageEnabled(const char* l)
{
return (s_LanguageEnabled.count(l) > 0);
}
void cmMakefileGenerator::ClearEnabledLanguages()
{
s_LanguageEnabled.clear();
}