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

Method AppendObjectDepends

Source/cmMakefileTargetGenerator.cxx:2018–2035  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2016}
2017
2018void cmMakefileTargetGenerator::AppendObjectDepends(
2019 std::vector<std::string>& depends)
2020{
2021 // Add dependencies on the compiled object files.
2022 std::string const& relPath =
2023 this->LocalGenerator->GetHomeRelativeOutputPath();
2024 for (std::string const& obj : this->Objects) {
2025 std::string objTarget = cmStrCat(relPath, obj);
2026 depends.push_back(std::move(objTarget));
2027 }
2028
2029 // Add dependencies on the external object files.
2030 cm::append(depends, this->ExternalObjects);
2031
2032 // Add a dependency on the rule file itself.
2033 this->LocalGenerator->AppendRuleDepend(depends,
2034 this->BuildFileNameFull.c_str());
2035}
2036
2037void cmMakefileTargetGenerator::AppendLinkDepends(
2038 std::vector<std::string>& depends, std::string const& linkLanguage)

Callers 2

AppendLinkDependsMethod · 0.95

Calls 7

moveFunction · 0.85
appendFunction · 0.85
push_backMethod · 0.80
AppendRuleDependMethod · 0.80
c_strMethod · 0.80
cmStrCatFunction · 0.70

Tested by

no test coverage detected