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

Method Join

Source/cmTargetIncludeDirectoriesCommand.cxx:45–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43};
44
45std::string TargetIncludeDirectoriesImpl::Join(
46 std::vector<std::string> const& content)
47{
48 std::string dirs;
49 std::string sep;
50 std::string prefix = this->Makefile->GetCurrentSourceDirectory() + "/";
51 for (std::string const& it : content) {
52 if (cmSystemTools::FileIsFullPath(it) ||
53 cmGeneratorExpression::Find(it) == 0) {
54 dirs += cmStrCat(sep, it);
55 } else {
56 dirs += cmStrCat(sep, prefix, it);
57 }
58 sep = ";";
59 }
60 return dirs;
61}
62
63bool TargetIncludeDirectoriesImpl::HandleDirectContent(
64 cmTarget* tgt, std::vector<std::string> const& content, bool prepend,

Callers 2

HandleDirectContentMethod · 0.95

Calls 1

cmStrCatFunction · 0.70

Tested by

no test coverage detected