Makefiles: Extract identical code from condition

This commit is contained in:
Stephen Kelly 2016-10-09 10:47:43 +02:00
parent 378849f41e
commit 009019f259

View File

@ -999,12 +999,9 @@ void cmLocalUnixMakefileGenerator3::AppendCustomCommand(
if (workingDir.empty()) {
output = this->MaybeConvertToRelativePath(
this->GetCurrentBinaryDirectory(), output);
output =
this->ConvertToOutputFormat(output, cmOutputConverter::SHELL);
} else {
output =
this->ConvertToOutputFormat(output, cmOutputConverter::SHELL);
}
output =
this->ConvertToOutputFormat(output, cmOutputConverter::SHELL);
}
vars.Output = output.c_str();