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

Method HandleDirectContent

Source/cmTargetIncludeDirectoriesCommand.cxx:63–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63bool TargetIncludeDirectoriesImpl::HandleDirectContent(
64 cmTarget* tgt, std::vector<std::string> const& content, bool prepend,
65 bool system)
66{
67 cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
68 tgt->InsertInclude(BT<std::string>(this->Join(content), lfbt), prepend);
69 if (system) {
70 std::string prefix = this->Makefile->GetCurrentSourceDirectory() + "/";
71 std::set<std::string> sdirs;
72 for (std::string const& it : content) {
73 if (cmSystemTools::FileIsFullPath(it) ||
74 cmGeneratorExpression::Find(it) == 0) {
75 sdirs.insert(it);
76 } else {
77 sdirs.insert(prefix + it);
78 }
79 }
80 tgt->AddSystemIncludeDirectories(sdirs);
81 }
82 return true; // Successfully handled.
83}
84
85void TargetIncludeDirectoriesImpl::HandleInterfaceContent(
86 cmTarget* tgt, std::vector<std::string> const& content, bool prepend,

Callers 1

Calls 5

JoinMethod · 0.95
InsertIncludeMethod · 0.80
GetBacktraceMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected