cmOutputConverter: use new ConvertToRelativePath signature internally

This commit is contained in:
Daniel Pfeifer 2016-06-16 23:08:49 +02:00 committed by Stephen Kelly
parent 149af87b86
commit 8d47a20f13
1 changed files with 4 additions and 6 deletions

View File

@ -54,21 +54,19 @@ std::string cmOutputConverter::ConvertToRelativePath(
switch (relative) {
case HOME:
result = this->ConvertToRelativePath(
this->GetState()->GetSourceDirectoryComponents(), source);
this->GetState()->GetSourceDirectory(), source);
break;
case START:
result = this->ConvertToRelativePath(
this->StateSnapshot.GetDirectory().GetCurrentSourceComponents(),
source);
this->StateSnapshot.GetDirectory().GetCurrentSource(), source);
break;
case HOME_OUTPUT:
result = this->ConvertToRelativePath(
this->GetState()->GetBinaryDirectoryComponents(), source);
this->GetState()->GetBinaryDirectory(), source);
break;
case START_OUTPUT:
result = this->ConvertToRelativePath(
this->StateSnapshot.GetDirectory().GetCurrentBinaryComponents(),
source);
this->StateSnapshot.GetDirectory().GetCurrentBinary(), source);
break;
}
return result;