mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-14 02:09:51 -06:00
Makefiles: Extract identical code from condition
This commit is contained in:
@@ -999,12 +999,9 @@ void cmLocalUnixMakefileGenerator3::AppendCustomCommand(
|
|||||||
if (workingDir.empty()) {
|
if (workingDir.empty()) {
|
||||||
output = this->MaybeConvertToRelativePath(
|
output = this->MaybeConvertToRelativePath(
|
||||||
this->GetCurrentBinaryDirectory(), output);
|
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();
|
vars.Output = output.c_str();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user