summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-07-25 15:55:34 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-07-27 18:09:38 (GMT)
commita8e5d838edcb692ff69c2073cf692d7067f52c67 (patch)
treef86d9ecc86ab84e990eefc8efeccbc1d5ae1a949 /Source/cmGlobalGenerator.cxx
parentd568eefe104e480706a2e6ceb16df4376d4becbf (diff)
downloadCMake-a8e5d838edcb692ff69c2073cf692d7067f52c67.zip
CMake-a8e5d838edcb692ff69c2073cf692d7067f52c67.tar.gz
CMake-a8e5d838edcb692ff69c2073cf692d7067f52c67.tar.bz2
cmCPackPropertiesGenerator: Require cmLocalGenerator in API.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 88ac0bc..fcb5998 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -3050,7 +3050,8 @@ bool cmGlobalGenerator::GenerateCPackPropertiesFile()
cmake::InstalledFilesMap const& installedFiles =
this->CMakeInstance->GetInstalledFiles();
- cmMakefile* mf = this->LocalGenerators[0]->GetMakefile();
+ cmLocalGenerator* lg = this->LocalGenerators[0];
+ cmMakefile* mf = lg->GetMakefile();
std::vector<std::string> configs;
std::string config = mf->GetConfigurations(configs, false);
@@ -3072,7 +3073,7 @@ bool cmGlobalGenerator::GenerateCPackPropertiesFile()
cmInstalledFile const& installedFile = i->second;
cmCPackPropertiesGenerator cpackPropertiesGenerator(
- mf, installedFile, configs);
+ lg, installedFile, configs);
cpackPropertiesGenerator.Generate(file, config, configs);
}