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

Method GetFileSetForSource

Source/cmGeneratorTarget.cxx:6317–6330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6315}
6316
6317cmFileSet const* cmGeneratorTarget::GetFileSetForSource(
6318 std::string const& config, cmSourceFile const* sf) const
6319{
6320 this->BuildFileSetInfoCache(config);
6321
6322 auto const& path = sf->GetFullPath();
6323 auto const& per_config = this->Configs[config];
6324
6325 auto const fsit = per_config.FileSetCache.find(path);
6326 if (fsit == per_config.FileSetCache.end()) {
6327 return nullptr;
6328 }
6329 return fsit->second;
6330}
6331
6332bool cmGeneratorTarget::NeedDyndepForSource(std::string const& lang,
6333 std::string const& config,

Callers 8

ComputeKindedSourcesMethod · 0.95
NeedDyndepForSourceMethod · 0.95
ComputeFlagsForObjectMethod · 0.80
ForTargetMethod · 0.80
WriteAllSourcesMethod · 0.80

Calls 4

BuildFileSetInfoCacheMethod · 0.95
GetFullPathMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected