mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
Ninja: Extract identical code from condition
This commit is contained in:
@@ -492,10 +492,8 @@ std::string cmLocalNinjaGenerator::MakeCustomLauncher(
|
||||
if (ccg.GetWorkingDirectory().empty()) {
|
||||
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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user