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) { 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;