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

Method GetFileSetPaths

Source/cmTarget.cxx:2346–2364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2344}
2345
2346cmValue cmTargetInternals::GetFileSetPaths(cmTarget const* self,
2347 std::string const& fileSetName,
2348 cm::string_view fileSetType) const
2349{
2350 auto const* fileSet = self->GetFileSet(fileSetName);
2351 if (!fileSet) {
2352 return nullptr;
2353 }
2354 if (fileSet->GetType() != fileSetType) {
2355 this->Makefile->IssueMessage(MessageType::FATAL_ERROR,
2356 cmStrCat("File set \"", fileSetName,
2357 "\" is not of type \"", fileSetType,
2358 "\"."));
2359 return nullptr;
2360 }
2361 static std::string output;
2362 output = cmList::to_string(fileSet->GetFileEntries());
2363 return cmValue(output);
2364}
2365
2366void cmTarget::AppendBuildInterfaceIncludes()
2367{

Callers 1

ReadPropertiesMethod · 0.80

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