MCPcopy Create free account
hub / github.com/Kitware/CMake / FillProjectMap

Method FillProjectMap

Source/cmGlobalGenerator.cxx:2659–2675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2657}
2658
2659void cmGlobalGenerator::FillProjectMap()
2660{
2661 this->ProjectMap.clear(); // make sure we start with a clean map
2662 for (auto const& localGen : this->LocalGenerators) {
2663 // for each local generator add all projects
2664 cmStateSnapshot snp = localGen->GetStateSnapshot();
2665 std::string name;
2666 do {
2667 std::string snpProjName = snp.GetProjectName();
2668 if (name != snpProjName) {
2669 name = snpProjName;
2670 this->ProjectMap[name].push_back(localGen.get());
2671 }
2672 snp = snp.GetBuildsystemDirectoryParent();
2673 } while (snp.IsValid());
2674 }
2675}
2676
2677cmMakefile* cmGlobalGenerator::FindMakefile(std::string const& start_dir) const
2678{

Callers 1

ComputeMethod · 0.95

Calls 7

push_backMethod · 0.80
clearMethod · 0.45
GetStateSnapshotMethod · 0.45
GetProjectNameMethod · 0.45
getMethod · 0.45
IsValidMethod · 0.45

Tested by

no test coverage detected