mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-19 19:43:23 +08: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) {
|
command != makeCommand.end() && retVal == 0; ++command) {
|
||||||
makeCommandStr = command->Printable();
|
makeCommandStr = command->Printable();
|
||||||
outputMakeCommandStr = command->QuotedPrintable();
|
outputMakeCommandStr = command->QuotedPrintable();
|
||||||
if (command != makeCommand.end()) {
|
if ((command + 1) != makeCommand.end()) {
|
||||||
makeCommandStr += " && ";
|
makeCommandStr += " && ";
|
||||||
outputMakeCommandStr += " && ";
|
outputMakeCommandStr += " && ";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user