summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileGenerator.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-04-02 20:43:23 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-04-02 20:43:23 (GMT)
commit4ea0f6b9494f2b4a4a5a238f8ad51ee6fbbcfe0a (patch)
treeb73c04c8bce53edbdf39e3e98ae6e2a361f47bef /Source/cmMakefileGenerator.h
parent81ebecaea17cc18dfdda4fc3051eba08f6f076a0 (diff)
downloadCMake-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.h')
-rw-r--r--Source/cmMakefileGenerator.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/cmMakefileGenerator.h b/Source/cmMakefileGenerator.h
index afef32a..4ef8078 100644
--- a/Source/cmMakefileGenerator.h
+++ b/Source/cmMakefileGenerator.h
@@ -69,11 +69,19 @@ public:
* Try to determine system infomation such as shared library
* extension, pthreads, byte order etc.
*/
- virtual void ComputeSystemInfo() = 0;
+ virtual void EnableLanguage(const char*) = 0;
virtual ~cmMakefileGenerator(){};
+
+ /**
+ * Set/Get and Clear the enabled languages.
+ */
+ static void SetLanguageEnabled(const char*);
+ static bool GetLanguageEnabled(const char*);
+ static void ClearEnabledLanguages();
protected:
static std::map<cmStdString, cmMakefileGenerator*> s_RegisteredGenerators;
+ static std::map<cmStdString, bool> s_LanguageEnabled;
cmMakefile* m_Makefile;
};