mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-28 01:49:23 -05:00
Ninja: Extract identical code from condition
This commit is contained in:
@@ -492,10 +492,8 @@ std::string cmLocalNinjaGenerator::MakeCustomLauncher(
|
|||||||
if (ccg.GetWorkingDirectory().empty()) {
|
if (ccg.GetWorkingDirectory().empty()) {
|
||||||
output =
|
output =
|
||||||
this->ConvertToRelativePath(this->GetCurrentBinaryDirectory(), output);
|
this->ConvertToRelativePath(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