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

Method GenerateScriptForConfig

Source/cmInstallFileSetGenerator.cxx:100–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void cmInstallFileSetGenerator::GenerateScriptForConfig(
101 std::ostream& os, std::string const& config, Indent indent)
102{
103
104 if (!this->FileSet) {
105 return;
106 }
107
108 for (auto const& dirEntry : this->CalculateFilesPerDir(config)) {
109 std::string destSub;
110 if (!dirEntry.first.empty()) {
111 destSub = cmStrCat('/', dirEntry.first);
112 }
113 this->AddInstallRule(os, cmStrCat(this->GetDestination(config), destSub),
114 cmInstallType_FILES, dirEntry.second,
115 this->GetOptional(), this->FilePermissions.c_str(),
116 nullptr, nullptr, nullptr, indent);
117 }
118}
119
120std::map<std::string, std::vector<std::string>>
121cmInstallFileSetGenerator::CalculateFilesPerDir(

Callers

nothing calls this directly

Calls 7

CalculateFilesPerDirMethod · 0.95
GetDestinationMethod · 0.95
GetOptionalMethod · 0.95
AddInstallRuleMethod · 0.80
c_strMethod · 0.80
cmStrCatFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected