cmOutputConverter: move ConvertToRelativePath to cmStateDirectory.

This commit is contained in:
Bruno Manganelli
2018-11-23 18:52:26 +00:00
parent 05e4fa4773
commit b6a957c969
25 changed files with 89 additions and 86 deletions

View File

@@ -210,9 +210,10 @@ std::string cmLocalVisualStudioGenerator::ConstructScript(
}
if (workingDirectory.empty()) {
script += this->ConvertToOutputFormat(
this->ConvertToRelativePath(this->GetCurrentBinaryDirectory(), cmd),
cmOutputConverter::SHELL);
script +=
this->ConvertToOutputFormat(this->MaybeConvertToRelativePath(
this->GetCurrentBinaryDirectory(), cmd),
cmOutputConverter::SHELL);
} else {
script += this->ConvertToOutputFormat(cmd.c_str(), SHELL);
}