exports: Hold an ExportSet pointer in cm*Export*Generator

Get name from this->ExportSet.
This commit is contained in:
Yury G. Kudryashov
2012-03-01 14:52:32 +04:00
committed by Brad King
parent 5c898fbd99
commit 81cdab5bea
5 changed files with 30 additions and 38 deletions
+3 -1
View File
@@ -1271,7 +1271,9 @@ bool cmInstallCommand::HandleExportMode(std::vector<std::string> const& args)
// Create the export install generator.
cmInstallExportGenerator* exportGenerator =
new cmInstallExportGenerator(
exp.GetCString(), ica.GetDestination().c_str(),
this->Makefile->GetLocalGenerator()
->GetGlobalGenerator()->GetExportSets()[exp.GetString()],
ica.GetDestination().c_str(),
ica.GetPermissions().c_str(), ica.GetConfigurations(),
ica.GetComponent().c_str(), fname.c_str(),
name_space.GetCString(), this->Makefile);