| 43 | } |
| 44 | |
| 45 | bool 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 | |
| 58 | std::vector<std::string> prepareFilesPathsForTree( |
| 59 | std::vector<std::string> const& filesPaths, |
no test coverage detected
searching dependent graphs…