diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-02 20:43:23 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-02 20:43:23 (GMT) |
commit | 4ea0f6b9494f2b4a4a5a238f8ad51ee6fbbcfe0a (patch) | |
tree | b73c04c8bce53edbdf39e3e98ae6e2a361f47bef /Source/cmMakefileGenerator.cxx | |
parent | 81ebecaea17cc18dfdda4fc3051eba08f6f076a0 (diff) | |
download | CMake-4ea0f6b9494f2b4a4a5a238f8ad51ee6fbbcfe0a.zip CMake-4ea0f6b9494f2b4a4a5a238f8ad51ee6fbbcfe0a.tar.gz CMake-4ea0f6b9494f2b4a4a5a238f8ad51ee6fbbcfe0a.tar.bz2 |
ENH: add enable language support for PROJECT command, this means that a C only project can be built with cmake, even without a cxx compiler
Diffstat (limited to 'Source/cmMakefileGenerator.cxx')
-rw-r--r-- | Source/cmMakefileGenerator.cxx | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Source/cmMakefileGenerator.cxx b/Source/cmMakefileGenerator.cxx index 43ef3e0..ef0c819 100644 --- a/Source/cmMakefileGenerator.cxx +++ b/Source/cmMakefileGenerator.cxx @@ -19,6 +19,7 @@ // static list of registered generators std::map<cmStdString, cmMakefileGenerator*> cmMakefileGenerator::s_RegisteredGenerators; +std::map<cmStdString, bool> cmMakefileGenerator::s_LanguageEnabled; void cmMakefileGenerator::SetMakefile(cmMakefile* mf) @@ -77,3 +78,25 @@ cmMakefileGenerator::CreateGenerator(const char* name) } return 0; } + + + +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(); +} + |