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

Method GetLinkImplementationLibraries

Source/cmGeneratorTarget_Link.cxx:978–999  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

976}
977
978cmLinkImplementationLibraries const*
979cmGeneratorTarget::GetLinkImplementationLibraries(std::string const& config,
980 UseTo usage) const
981{
982 // There is no link implementation for targets that cannot compile sources.
983 if (!this->CanCompileSources()) {
984 return nullptr;
985 }
986
987 // Populate the link implementation libraries for this configuration.
988 cmOptionalLinkImplementation& impl =
989 (usage == UseTo::Compile
990 ? this
991 ->LinkImplUsageRequirementsOnlyMap[cmSystemTools::UpperCase(config)]
992 : this->LinkImplMap[cmSystemTools::UpperCase(config)]);
993 MaybeEnableCheckLinkLibraries(impl);
994 if (!impl.LibrariesDone) {
995 impl.LibrariesDone = true;
996 this->ComputeLinkImplementationLibraries(config, impl, usage);
997 }
998 return &impl;
999}
1000
1001namespace {
1002class TransitiveLinkImpl

Callers 11

HaveBuildTreeRPATHMethod · 0.95
GetIncludeDirectoriesMethod · 0.95
GetDependenciesMethod · 0.80
AddObjectEntriesFunction · 0.80
AddInterfaceEntriesFunction · 0.80
getLinkedTargetsContentFunction · 0.80
StaticLibraryCycleFunction · 0.80
InitAutogenTargetMethod · 0.80

Tested by

no test coverage detected