| 2324 | } |
| 2325 | |
| 2326 | cmValue 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 | |
| 2346 | cmValue cmTargetInternals::GetFileSetPaths(cmTarget const* self, |
| 2347 | std::string const& fileSetName, |
no test coverage detected