summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-30 21:50:28 (GMT)
committerBrad King <brad.king@kitware.com>2015-06-04 13:06:41 (GMT)
commita653611db0d6e23456c5ef90f95e19ea5d70a428 (patch)
treee8cea00b2f10069f82690df61616bcd6b2d54d08 /Source/cmakemain.cxx
parent69a038a9e90a8839b69f4cb8826688be611e8b0d (diff)
downloadCMake-a653611db0d6e23456c5ef90f95e19ea5d70a428.zip
CMake-a653611db0d6e23456c5ef90f95e19ea5d70a428.tar.gz
CMake-a653611db0d6e23456c5ef90f95e19ea5d70a428.tar.bz2
cmake: Replace CurrentLocalGenerator concept with CurrentMakefile.
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index e5f4700..cc30732 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -113,12 +113,7 @@ static cmMakefile* cmakemainGetMakefile(void *clientdata)
cmGlobalGenerator* gg=cm->GetGlobalGenerator();
if (gg)
{
- cmLocalGenerator* lg=gg->GetCurrentLocalGenerator();
- if (lg)
- {
- cmMakefile* mf = lg->GetMakefile();
- return mf;
- }
+ return gg->GetCurrentMakefile();
}
}
return 0;