mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
cmLocalGenerator: Factor out helper to expand custom command output paths
This commit is contained in:
@@ -53,11 +53,7 @@ std::vector<std::string> EvaluateOutputs(std::vector<std::string> const& paths,
|
||||
std::vector<std::string> outputs;
|
||||
for (std::string const& p : paths) {
|
||||
std::unique_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(p);
|
||||
std::string const& ep = cge->Evaluate(lg, config);
|
||||
cm::append(outputs, cmExpandedList(ep));
|
||||
}
|
||||
for (std::string& p : outputs) {
|
||||
p = cmSystemTools::CollapseFullPath(p, lg->GetCurrentBinaryDirectory());
|
||||
cm::append(outputs, lg->ExpandCustomCommandOutputPaths(*cge, config));
|
||||
}
|
||||
return outputs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user