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

Method AppendTargetDepends

Source/cmMakefileTargetGenerator.cxx:1995–2016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1993}
1994
1995void cmMakefileTargetGenerator::AppendTargetDepends(
1996 std::vector<std::string>& depends, bool ignoreType)
1997{
1998 // Static libraries never depend on anything for linking.
1999 if (this->GeneratorTarget->GetType() == cmStateEnums::STATIC_LIBRARY &&
2000 !ignoreType) {
2001 return;
2002 }
2003
2004 std::string const& cfg = this->GetConfigName();
2005
2006 if (this->GeneratorTarget->HasLinkDependencyFile(cfg)) {
2007 depends.push_back(
2008 cmStrCat(this->TargetBuildDirectoryFull, "/compiler_depend.ts"));
2009 }
2010
2011 // Loop over all library dependencies.
2012 if (cmComputeLinkInformation const* cli =
2013 this->GeneratorTarget->GetLinkInformation(cfg)) {
2014 cm::append(depends, cli->GetDepends());
2015 }
2016}
2017
2018void cmMakefileTargetGenerator::AppendObjectDepends(
2019 std::vector<std::string>& depends)

Callers 2

WriteDeviceLinkRuleMethod · 0.95
AppendLinkDependsMethod · 0.95

Calls 7

appendFunction · 0.85
HasLinkDependencyFileMethod · 0.80
push_backMethod · 0.80
GetLinkInformationMethod · 0.80
GetDependsMethod · 0.80
cmStrCatFunction · 0.70
GetTypeMethod · 0.45

Tested by

no test coverage detected