| 2657 | } |
| 2658 | |
| 2659 | void 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 | |
| 2677 | cmMakefile* cmGlobalGenerator::FindMakefile(std::string const& start_dir) const |
| 2678 | { |
no test coverage detected