2001-01-11 14:55:47 -05:00
|
|
|
/*=========================================================================
|
|
|
|
|
|
|
|
Program: Insight Segmentation & Registration Toolkit
|
|
|
|
Module: $RCSfile$
|
|
|
|
Language: C++
|
|
|
|
Date: $Date$
|
|
|
|
Version: $Revision$
|
|
|
|
|
2002-01-21 15:30:43 -05: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 14:55:47 -05:00
|
|
|
|
|
|
|
=========================================================================*/
|
2001-01-05 13:49:30 -05:00
|
|
|
#include "cmMakefileGenerator.h"
|
2001-01-05 11:41:20 -05:00
|
|
|
|
2001-09-06 17:28:24 -04:00
|
|
|
// static list of registered generators
|
2002-04-02 15:43:23 -05:00
|
|
|
std::map<cmStdString, bool> cmMakefileGenerator::s_LanguageEnabled;
|
2001-09-06 17:28:24 -04:00
|
|
|
|
|
|
|
|
2001-01-05 11:41:20 -05:00
|
|
|
void cmMakefileGenerator::SetMakefile(cmMakefile* mf)
|
|
|
|
{
|
|
|
|
m_Makefile = mf;
|
|
|
|
}
|
|
|
|
|
2002-04-02 15:43:23 -05:00
|
|
|
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();
|
|
|
|
}
|
|
|
|
|