| 54 | } |
| 55 | |
| 56 | void cmOutputConverter::ComputeRelativePathTopBinary() |
| 57 | { |
| 58 | // Walk up the buildsystem directory tree to find the highest binary |
| 59 | // directory that contains the current binary directory. |
| 60 | cmStateSnapshot snapshot = this->StateSnapshot; |
| 61 | for (cmStateSnapshot parent = snapshot.GetBuildsystemDirectoryParent(); |
| 62 | parent.IsValid(); parent = parent.GetBuildsystemDirectoryParent()) { |
| 63 | if (cmSystemTools::IsSubDirectory( |
| 64 | snapshot.GetDirectory().GetCurrentBinary(), |
| 65 | parent.GetDirectory().GetCurrentBinary())) { |
| 66 | snapshot = parent; |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | this->RelativePathTopBinary = snapshot.GetDirectory().GetCurrentBinary(); |
| 71 | } |
| 72 | |
| 73 | void cmOutputConverter::ComputeRelativePathTopRelation() |
| 74 | { |
no test coverage detected