mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-08 23:44:00 +03:00
Makefiles: Replace array access with local variable
This commit is contained in:
1 parent
4a3c49b469
commit
378849f41e
1 file changed
+6
-5
@@ -995,14 +995,15 @@ void cmLocalUnixMakefileGenerator3::AppendCustomCommand(
|
||||
std::string output;
|
||||
const std::vector<std::string>& outputs = ccg.GetOutputs();
|
||||
if (!outputs.empty()) {
|
||||
output = outputs[0];
|
||||
if (workingDir.empty()) {
|
||||
output = this->MaybeConvertToRelativePath(
|
||||
this->GetCurrentBinaryDirectory(), outputs[0]);
|
||||
output = this->ConvertToOutputFormat(output,
|
||||
cmOutputConverter::SHELL);
|
||||
this->GetCurrentBinaryDirectory(), output);
|
||||
output =
|
||||
this->ConvertToOutputFormat(output, cmOutputConverter::SHELL);
|
||||
} else {
|
||||
output = this->ConvertToOutputFormat(outputs[0],
|
||||
cmOutputConverter::SHELL);
|
||||
output =
|
||||
this->ConvertToOutputFormat(output, cmOutputConverter::SHELL);
|
||||
}
|
||||
}
|
||||
vars.Output = output.c_str();
|
||||
|
||||
Reference in new issue
Block a user