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

Method ComputeRelativePathTopRelation

Source/cmOutputConverter.cxx:73–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void cmOutputConverter::ComputeRelativePathTopRelation()
74{
75 if (cmSystemTools::ComparePath(this->RelativePathTopSource,
76 this->RelativePathTopBinary)) {
77 this->RelativePathTopRelation = TopRelation::InSource;
78 } else if (cmSystemTools::IsSubDirectory(this->RelativePathTopBinary,
79 this->RelativePathTopSource)) {
80 this->RelativePathTopRelation = TopRelation::BinInSrc;
81 } else if (cmSystemTools::IsSubDirectory(this->RelativePathTopSource,
82 this->RelativePathTopBinary)) {
83 this->RelativePathTopRelation = TopRelation::SrcInBin;
84 } else {
85 this->RelativePathTopRelation = TopRelation::Separate;
86 }
87}
88
89std::string const& cmOutputConverter::GetRelativePathTopSource() const
90{

Callers 2

cmOutputConverterMethod · 0.95
SetRelativePathTopMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected