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

Method GenerateMainFile

Source/cmExportTryCompileFileGenerator.cxx:57–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57bool 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
85std::string cmExportTryCompileFileGenerator::FindTargets(
86 std::string const& propName, cmGeneratorTarget const* tgt,

Callers

nothing calls this directly

Calls 9

FindTargetsMethod · 0.95
PopulatePropertiesMethod · 0.95
pop_backMethod · 0.80
emptyMethod · 0.45
backMethod · 0.45
insertMethod · 0.45
GetTypeMethod · 0.45

Tested by

no test coverage detected