mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 04:40:18 -05:00
cmcmd: Fix typo in RunCommand logic
Fix logic added by commit 18eae3f04d (Windows: Do not report manifest
tool update notification as failure, 2017-11-09).
Issue: #17444
This commit is contained in:
+1
-1
@@ -1594,7 +1594,7 @@ static bool RunCommand(const char* comment, std::vector<std::string>& command,
|
|||||||
retCode == 0 || (retCodeOkay && retCodeOkay(retCode));
|
retCode == 0 || (retCodeOkay && retCodeOkay(retCode));
|
||||||
bool const success = commandResult && retCodeSuccess;
|
bool const success = commandResult && retCodeSuccess;
|
||||||
if (retCodeOut) {
|
if (retCodeOut) {
|
||||||
if (commandResult || !retCodeOkay) {
|
if (commandResult || !retCodeSuccess) {
|
||||||
*retCodeOut = retCode;
|
*retCodeOut = retCode;
|
||||||
} else {
|
} else {
|
||||||
*retCodeOut = -1;
|
*retCodeOut = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user