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

Method GenerateScriptForConfig

Source/cmInstallDirectoryGenerator.cxx:87–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void cmInstallDirectoryGenerator::GenerateScriptForConfig(
88 std::ostream& os, std::string const& config, Indent indent)
89{
90 std::vector<std::string> dirs = this->GetDirectories(config);
91
92 if (!(dirs.size() == 1 && dirs[0].empty())) {
93 // Make sure all dirs have absolute paths.
94 cmMakefile const& mf = *this->LocalGenerator->GetMakefile();
95 for (std::string& d : dirs) {
96 if (!cmSystemTools::FileIsFullPath(d)) {
97 d = cmStrCat(mf.GetCurrentSourceDirectory(), '/', d);
98 }
99 }
100 }
101
102 this->AddDirectoryInstallRule(os, config, indent, dirs);
103}
104
105void cmInstallDirectoryGenerator::AddDirectoryInstallRule(
106 std::ostream& os, std::string const& config, Indent indent,

Callers

nothing calls this directly

Calls 6

GetDirectoriesMethod · 0.95
cmStrCatFunction · 0.70
sizeMethod · 0.45
emptyMethod · 0.45
GetMakefileMethod · 0.45

Tested by

no test coverage detected