summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFile.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-03 09:10:30 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-05-03 09:42:00 (GMT)
commita0836ed97804952ace98d2c1d0d46e968a532a3c (patch)
tree11c3a118fb30c8cf6eb41eca2898251197edadeb /Source/cmSourceFile.cxx
parentcbf143bb76604f576275d96a1e1e4c701680ff29 (diff)
downloadCMake-a0836ed97804952ace98d2c1d0d46e968a532a3c.zip
CMake-a0836ed97804952ace98d2c1d0d46e968a532a3c.tar.gz
CMake-a0836ed97804952ace98d2c1d0d46e968a532a3c.tar.bz2
Port to cmMakefile::GetGlobalGenerator.
Diffstat (limited to 'Source/cmSourceFile.cxx')
-rw-r--r--Source/cmSourceFile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSourceFile.cxx b/Source/cmSourceFile.cxx
index cdd04ed..724ab39 100644
--- a/Source/cmSourceFile.cxx
+++ b/Source/cmSourceFile.cxx
@@ -282,7 +282,7 @@ void cmSourceFile::CheckLanguage(std::string const& ext)
{
// Try to identify the source file language from the extension.
cmMakefile const* mf = this->Location.GetMakefile();
- cmGlobalGenerator* gg = mf->GetLocalGenerator()->GetGlobalGenerator();
+ cmGlobalGenerator* gg = mf->GetGlobalGenerator();
std::string l = gg->GetLanguageFromExtension(ext.c_str());
if(!l.empty())
{