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

Method RelativeToSource

Source/cmGlobalXCodeGenerator.cxx:5325–5333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5323}
5324
5325std::string cmGlobalXCodeGenerator::RelativeToSource(std::string const& p)
5326{
5327 std::string const& rootSrc =
5328 this->CurrentRootGenerator->GetCurrentSourceDirectory();
5329 if (cmSystemTools::IsSubDirectory(p, rootSrc)) {
5330 return cmSystemTools::ForceToRelativePath(rootSrc, p);
5331 }
5332 return p;
5333}
5334
5335std::string cmGlobalXCodeGenerator::RelativeToRootBinary(std::string const& p)
5336{

Calls

no outgoing calls

Tested by

no test coverage detected