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

Method GetSourceObjectLibraries

Source/cmGeneratorTarget.cxx:5072–5087  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5070}
5071
5072std::set<cmGeneratorTarget const*> cmGeneratorTarget::GetSourceObjectLibraries(
5073 std::string const& config) const
5074{
5075 std::set<cmGeneratorTarget const*> objectLibraries;
5076 std::vector<cmSourceFile const*> externalObjects;
5077 this->GetExternalObjects(externalObjects, config);
5078 for (cmSourceFile const* extObj : externalObjects) {
5079 std::string objLib = extObj->GetObjectLibrary();
5080 if (cmGeneratorTarget* tgt =
5081 this->LocalGenerator->FindGeneratorTargetToUse(objLib)) {
5082 objectLibraries.insert(tgt);
5083 }
5084 }
5085
5086 return objectLibraries;
5087}
5088
5089bool cmGeneratorTarget::IsLanguageUsed(std::string const& language,
5090 std::string const& config) const

Callers 3

GetLanguagesMethod · 0.95
HaveFortranSourcesMethod · 0.95

Calls 4

GetExternalObjectsMethod · 0.95
GetObjectLibraryMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected