| 55 | } |
| 56 | |
| 57 | bool cmExportTryCompileFileGenerator::GenerateMainFile(std::ostream& os) |
| 58 | { |
| 59 | std::set<cmGeneratorTarget const*> emitted; |
| 60 | std::set<cmGeneratorTarget const*> emittedDeps; |
| 61 | while (!this->Exports.empty()) { |
| 62 | cmGeneratorTarget const* te = this->Exports.back(); |
| 63 | this->Exports.pop_back(); |
| 64 | if (emitted.insert(te).second) { |
| 65 | emittedDeps.insert(te); |
| 66 | this->GenerateImportTargetCode(os, te, te->GetType()); |
| 67 | |
| 68 | ImportPropertyMap properties; |
| 69 | |
| 70 | for (std::string const& lang : this->Languages) { |
| 71 | for (auto i : cmGeneratorTarget::BuiltinTransitiveProperties) { |
| 72 | this->FindTargets(std::string(i.second.InterfaceName), te, lang, |
| 73 | emittedDeps); |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | this->PopulateProperties(te, properties, emittedDeps); |
| 78 | |
| 79 | this->GenerateInterfaceProperties(te, os, properties); |
| 80 | } |
| 81 | } |
| 82 | return true; |
| 83 | } |
| 84 | |
| 85 | std::string cmExportTryCompileFileGenerator::FindTargets( |
| 86 | std::string const& propName, cmGeneratorTarget const* tgt, |
nothing calls this directly
no test coverage detected