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

Method GetDirectories

Source/cmInstallDirectoryGenerator.cxx:55–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55std::vector<std::string> cmInstallDirectoryGenerator::GetDirectories(
56 std::string const& config) const
57{
58 // If given only empty directories, collapse into a single specification to
59 // avoid redundant calls. This supports the use case of installing an empty
60 // directory into a destination when a directory is not specified.
61 if (std::all_of(this->Directories.begin(), this->Directories.end(),
62 [](std::string const& d) { return d.empty(); })) {
63 return std::vector<std::string>{ "" };
64 }
65 cmList directories;
66 if (this->ActionsPerConfig) {
67 for (std::string const& f : this->Directories) {
68 directories.append(
69 cmGeneratorExpression::Evaluate(f, this->LocalGenerator, config));
70 }
71 } else {
72 directories = this->Directories;
73 }
74 return std::move(directories.data());
75}
76
77void cmInstallDirectoryGenerator::GenerateScriptActions(std::ostream& os,
78 Indent indent)

Callers 6

OutputBuildToolMethod · 0.80
ComputeLinkOptionsMethod · 0.80
DumpInstallerMethod · 0.80

Calls 6

moveFunction · 0.85
appendMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected