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

Function rootIsPrefix

Source/cmSourceGroupCommand.cxx:45–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45bool rootIsPrefix(std::string const& root,
46 std::vector<std::string> const& files, std::string& error)
47{
48 for (std::string const& file : files) {
49 if (!cmHasPrefix(file, root)) {
50 error = cmStrCat("ROOT: ", root, " is not a prefix of file: ", file);
51 return false;
52 }
53 }
54
55 return true;
56}
57
58std::vector<std::string> prepareFilesPathsForTree(
59 std::vector<std::string> const& filesPaths,

Callers 1

processTreeFunction · 0.85

Calls 2

cmHasPrefixFunction · 0.85
cmStrCatFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…