| 38 | } |
| 39 | |
| 40 | void cmOutputConverter::ComputeRelativePathTopSource() |
| 41 | { |
| 42 | // Walk up the buildsystem directory tree to find the highest source |
| 43 | // directory that contains the current source directory. |
| 44 | cmStateSnapshot snapshot = this->StateSnapshot; |
| 45 | for (cmStateSnapshot parent = snapshot.GetBuildsystemDirectoryParent(); |
| 46 | parent.IsValid(); parent = parent.GetBuildsystemDirectoryParent()) { |
| 47 | if (cmSystemTools::IsSubDirectory( |
| 48 | snapshot.GetDirectory().GetCurrentSource(), |
| 49 | parent.GetDirectory().GetCurrentSource())) { |
| 50 | snapshot = parent; |
| 51 | } |
| 52 | } |
| 53 | this->RelativePathTopSource = snapshot.GetDirectory().GetCurrentSource(); |
| 54 | } |
| 55 | |
| 56 | void cmOutputConverter::ComputeRelativePathTopBinary() |
| 57 | { |
no test coverage detected