diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-07-25 18:00:27 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-07-27 18:09:39 (GMT) |
commit | 57a69f934173eceaaf87e15074baf4e19402a687 (patch) | |
tree | 2f067d758ba448c52eea64b3e4d2152b43523a50 /Source/cmGlobalGenerator.cxx | |
parent | 0e0258c8b9c6cab7c55c90687b30d65a83783c2f (diff) | |
download | CMake-57a69f934173eceaaf87e15074baf4e19402a687.zip CMake-57a69f934173eceaaf87e15074baf4e19402a687.tar.gz CMake-57a69f934173eceaaf87e15074baf4e19402a687.tar.bz2 |
cmGlobalGenerator: Extract method to create generator objects.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 45ef399..8550d0d 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -1151,6 +1151,13 @@ void cmGlobalGenerator::Configure() } } +void cmGlobalGenerator::CreateGenerationObjects() +{ + cmDeleteAll(this->GeneratorTargets); + this->GeneratorTargets.clear(); + this->CreateGeneratorTargets(); +} + cmExportBuildFileGenerator* cmGlobalGenerator::GetExportedTargetsFile(const std::string &filename) const { @@ -1240,8 +1247,7 @@ void cmGlobalGenerator::Generate() this->LocalGenerators[i]->AddHelperCommands(); } - // Create per-target generator information. - this->CreateGeneratorTargets(); + this->CreateGenerationObjects(); this->InitGeneratorTargets(); #ifdef CMAKE_BUILD_WITH_CMAKE |