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

Method AddTargetByproducts

Source/cmLocalGenerator.cxx:5320–5336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5318}
5319
5320void cmLocalGenerator::AddTargetByproducts(
5321 cmTarget* target, std::vector<std::string> const& byproducts,
5322 cmListFileBacktrace const& bt, cmCommandOrigin origin)
5323{
5324 for (std::string const& o : byproducts) {
5325 if (cmGeneratorExpression::Find(o) == std::string::npos) {
5326 this->UpdateOutputToSourceMap(o, target, bt, origin);
5327 continue;
5328 }
5329
5330 // This byproduct path has a generator expression. Evaluate it to
5331 // register the byproducts for all configurations.
5332 for (std::string const& b : this->ExpandCustomCommandOutputGenex(o, bt)) {
5333 this->UpdateOutputToSourceMap(b, target, bt, cmCommandOrigin::Generator);
5334 }
5335 }
5336}
5337
5338void cmLocalGenerator::AddSourceOutputs(
5339 cmSourceFile* source, std::vector<std::string> const& outputs,

Callers 2

AddCustomCommandToTargetFunction · 0.80
AddUtilityCommandFunction · 0.80

Tested by

no test coverage detected