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

Function CheckRelativePath

Source/kwsys/testSystemTools.cxx:759–770  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

757}
758
759static bool CheckRelativePath(std::string const& local,
760 std::string const& remote,
761 std::string const& expected)
762{
763 std::string result = kwsys::SystemTools::RelativePath(local, remote);
764 if (!kwsys::SystemTools::ComparePath(expected, result)) {
765 std::cerr << "RelativePath(" << local << ", " << remote << ") yielded "
766 << result << " instead of " << expected << std::endl;
767 return false;
768 }
769 return true;
770}
771
772static bool CheckRelativePaths()
773{

Callers 1

CheckRelativePathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…