cmOutputConverter: use new ConvertToRelativePath signature internally
This commit is contained in:
parent
149af87b86
commit
8d47a20f13
|
@ -54,21 +54,19 @@ std::string cmOutputConverter::ConvertToRelativePath(
|
||||||
switch (relative) {
|
switch (relative) {
|
||||||
case HOME:
|
case HOME:
|
||||||
result = this->ConvertToRelativePath(
|
result = this->ConvertToRelativePath(
|
||||||
this->GetState()->GetSourceDirectoryComponents(), source);
|
this->GetState()->GetSourceDirectory(), source);
|
||||||
break;
|
break;
|
||||||
case START:
|
case START:
|
||||||
result = this->ConvertToRelativePath(
|
result = this->ConvertToRelativePath(
|
||||||
this->StateSnapshot.GetDirectory().GetCurrentSourceComponents(),
|
this->StateSnapshot.GetDirectory().GetCurrentSource(), source);
|
||||||
source);
|
|
||||||
break;
|
break;
|
||||||
case HOME_OUTPUT:
|
case HOME_OUTPUT:
|
||||||
result = this->ConvertToRelativePath(
|
result = this->ConvertToRelativePath(
|
||||||
this->GetState()->GetBinaryDirectoryComponents(), source);
|
this->GetState()->GetBinaryDirectory(), source);
|
||||||
break;
|
break;
|
||||||
case START_OUTPUT:
|
case START_OUTPUT:
|
||||||
result = this->ConvertToRelativePath(
|
result = this->ConvertToRelativePath(
|
||||||
this->StateSnapshot.GetDirectory().GetCurrentBinaryComponents(),
|
this->StateSnapshot.GetDirectory().GetCurrentBinary(), source);
|
||||||
source);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in New Issue