summaryrefslogtreecommitdiff
path: root/Source/cmcmd.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-11-10 10:35:24 -0500
committerBrad King <brad.king@kitware.com>2017-11-10 10:37:26 -0500
commit5c07d3900dfca4a1c7eb37cd00f448a8312dca03 (patch)
treebfb03c4a40e8ad65e82604af79abe86acdc89283 /Source/cmcmd.cxx
parent18eae3f04db49608348283b4860e9eede69bf0a8 (diff)
downloadcmake-5c07d3900dfca4a1c7eb37cd00f448a8312dca03.tar.gz
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
Diffstat (limited to 'Source/cmcmd.cxx')
-rw-r--r--Source/cmcmd.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx
index 433caefbb2..69339b448a 100644
--- a/Source/cmcmd.cxx
+++ b/Source/cmcmd.cxx
@@ -1594,7 +1594,7 @@ static bool RunCommand(const char* comment, std::vector<std::string>& command,
retCode == 0 || (retCodeOkay && retCodeOkay(retCode));
bool const success = commandResult && retCodeSuccess;
if (retCodeOut) {
- if (commandResult || !retCodeOkay) {
+ if (commandResult || !retCodeSuccess) {
*retCodeOut = retCode;
} else {
*retCodeOut = -1;