Makefiles: Separate two coupled calls

This commit is contained in:
Stephen Kelly
2016-10-09 10:47:43 +02:00
parent 8312fd5c1f
commit 4a3c49b469

View File

@@ -996,11 +996,10 @@ void cmLocalUnixMakefileGenerator3::AppendCustomCommand(
const std::vector<std::string>& outputs = ccg.GetOutputs();
if (!outputs.empty()) {
if (workingDir.empty()) {
output = this->ConvertToOutputFormat(
this->MaybeConvertToRelativePath(
this->GetCurrentBinaryDirectory(), outputs[0]),
output = this->MaybeConvertToRelativePath(
this->GetCurrentBinaryDirectory(), outputs[0]);
output = this->ConvertToOutputFormat(output,
cmOutputConverter::SHELL);
} else {
output = this->ConvertToOutputFormat(outputs[0],
cmOutputConverter::SHELL);