cmGlobalGenerator: Extract method to create generator objects.
This commit is contained in:
parent
0e0258c8b9
commit
57a69f9341
@ -1151,6 +1151,13 @@ void cmGlobalGenerator::Configure()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void cmGlobalGenerator::CreateGenerationObjects()
|
||||||
|
{
|
||||||
|
cmDeleteAll(this->GeneratorTargets);
|
||||||
|
this->GeneratorTargets.clear();
|
||||||
|
this->CreateGeneratorTargets();
|
||||||
|
}
|
||||||
|
|
||||||
cmExportBuildFileGenerator*
|
cmExportBuildFileGenerator*
|
||||||
cmGlobalGenerator::GetExportedTargetsFile(const std::string &filename) const
|
cmGlobalGenerator::GetExportedTargetsFile(const std::string &filename) const
|
||||||
{
|
{
|
||||||
@ -1240,8 +1247,7 @@ void cmGlobalGenerator::Generate()
|
|||||||
this->LocalGenerators[i]->AddHelperCommands();
|
this->LocalGenerators[i]->AddHelperCommands();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create per-target generator information.
|
this->CreateGenerationObjects();
|
||||||
this->CreateGeneratorTargets();
|
|
||||||
this->InitGeneratorTargets();
|
this->InitGeneratorTargets();
|
||||||
|
|
||||||
#ifdef CMAKE_BUILD_WITH_CMAKE
|
#ifdef CMAKE_BUILD_WITH_CMAKE
|
||||||
|
@ -86,6 +86,8 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual void Configure();
|
virtual void Configure();
|
||||||
|
|
||||||
|
void CreateGenerationObjects();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate the all required files for building this project/tree. This
|
* Generate the all required files for building this project/tree. This
|
||||||
* basically creates a series of LocalGenerators for each directory and
|
* basically creates a series of LocalGenerators for each directory and
|
||||||
|
Loading…
x
Reference in New Issue
Block a user