mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-26 04:09:35 +03:00
cmGlobalGenerator: fix off-by-one for && command joining
Only add `&&` if there is another command after the current one.
This commit is contained in:
@@ -2181,7 +2181,7 @@ int cmGlobalGenerator::Build(
|
||||
command != makeCommand.end() && retVal == 0; ++command) {
|
||||
makeCommandStr = command->Printable();
|
||||
outputMakeCommandStr = command->QuotedPrintable();
|
||||
if (command != makeCommand.end()) {
|
||||
if ((command + 1) != makeCommand.end()) {
|
||||
makeCommandStr += " && ";
|
||||
outputMakeCommandStr += " && ";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user