summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-09-03 16:03:41 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-09-03 16:03:41 (GMT)
commitc2ef51e1816fa9b82b1319b5c5c3cbfc3256cea1 (patch)
tree7381defd6dbc2d6532291eecb6c00d5c17b8f5f4 /Source/cmGlobalGenerator.h
parent652823dc8356272b0253718f56a9693872785cc9 (diff)
downloadCMake-c2ef51e1816fa9b82b1319b5c5c3cbfc3256cea1.zip
CMake-c2ef51e1816fa9b82b1319b5c5c3cbfc3256cea1.tar.gz
CMake-c2ef51e1816fa9b82b1319b5c5c3cbfc3256cea1.tar.bz2
ENH: define language extensions in cmake files and not hard coded, also fix trycompile problem
Diffstat (limited to 'Source/cmGlobalGenerator.h')
-rw-r--r--Source/cmGlobalGenerator.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h
index 82b0405..ed31cc1 100644
--- a/Source/cmGlobalGenerator.h
+++ b/Source/cmGlobalGenerator.h
@@ -69,7 +69,7 @@ public:
/**
* Set/Get and Clear the enabled languages.
*/
- void SetLanguageEnabled(const char*);
+ void SetLanguageEnabled(const char*, cmMakefile* mf);
bool GetLanguageEnabled(const char*);
void ClearEnabledLanguages();
@@ -105,6 +105,8 @@ public:
static int s_TryCompileTimeout;
bool GetForceUnixPaths() {return m_ForceUnixPaths;}
+ ///! return the language for the given extension
+ const char* GetLanguageFromExtension(const char* ext);
protected:
bool IsExcluded(cmLocalGenerator* root, cmLocalGenerator* gen);
void FindMakeProgram(cmMakefile*);
@@ -120,6 +122,7 @@ protected:
private:
std::map<cmStdString, bool> m_LanguageEnabled;
+ std::map<cmStdString, cmStdString> m_ExtensionToLanguage;
};
#endif