diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-09-03 16:03:41 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-09-03 16:03:41 (GMT) |
commit | c2ef51e1816fa9b82b1319b5c5c3cbfc3256cea1 (patch) | |
tree | 7381defd6dbc2d6532291eecb6c00d5c17b8f5f4 /Source/cmGlobalGenerator.h | |
parent | 652823dc8356272b0253718f56a9693872785cc9 (diff) | |
download | CMake-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.h | 5 |
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 |