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

Function EvaluateDepends

Source/cmCustomCommandGenerator.cxx:107–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107std::vector<std::string> EvaluateDepends(std::vector<std::string> const& paths,
108 cmGeneratorExpression const& ge,
109 cmLocalGenerator* lg,
110 std::string const& outputConfig,
111 std::string const& commandConfig)
112{
113 std::vector<std::string> depends;
114 for (std::string const& p : paths) {
115 std::string const& ep =
116 EvaluateSplitConfigGenex(p, ge, lg, /*useOutputConfig=*/true,
117 /*outputConfig=*/outputConfig,
118 /*commandConfig=*/commandConfig,
119 /*target=*/nullptr);
120 cm::append(depends, cmList{ ep });
121 }
122 for (std::string& p : depends) {
123 if (cmSystemTools::FileIsFullPath(p)) {
124 p = cmSystemTools::CollapseFullPath(p);
125 } else {
126 cmSystemTools::ConvertToUnixSlashes(p);
127 }
128 }
129 return depends;
130}
131
132std::vector<std::string> EvaluateOutputs(std::vector<std::string> const& paths,
133 cmGeneratorExpression const& ge,

Callers 1

Calls 2

EvaluateSplitConfigGenexFunction · 0.85
appendFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…