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

Method GetFileSetDirectories

Source/cmTarget.cxx:2326–2344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2324}
2325
2326cmValue cmTargetInternals::GetFileSetDirectories(
2327 cmTarget const* self, std::string const& fileSetName,
2328 cm::string_view fileSetType) const
2329{
2330 auto const* fileSet = self->GetFileSet(fileSetName);
2331 if (!fileSet) {
2332 return nullptr;
2333 }
2334 if (fileSet->GetType() != fileSetType) {
2335 this->Makefile->IssueMessage(MessageType::FATAL_ERROR,
2336 cmStrCat("File set \"", fileSetName,
2337 "\" is not of type \"", fileSetType,
2338 "\"."));
2339 return nullptr;
2340 }
2341 static std::string output;
2342 output = cmList::to_string(fileSet->GetDirectoryEntries());
2343 return cmValue(output);
2344}
2345
2346cmValue cmTargetInternals::GetFileSetPaths(cmTarget const* self,
2347 std::string const& fileSetName,

Callers 2

ReadPropertiesMethod · 0.45

Calls 6

to_stringFunction · 0.85
cmStrCatFunction · 0.70
cmValueClass · 0.70
GetFileSetMethod · 0.45
GetTypeMethod · 0.45
IssueMessageMethod · 0.45

Tested by

no test coverage detected