diff options
author | Brad King <brad.king@kitware.com> | 2017-11-10 15:35:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-11-10 15:37:26 (GMT) |
commit | 5c07d3900dfca4a1c7eb37cd00f448a8312dca03 (patch) | |
tree | bfb03c4a40e8ad65e82604af79abe86acdc89283 | |
parent | 18eae3f04db49608348283b4860e9eede69bf0a8 (diff) | |
download | CMake-5c07d3900dfca4a1c7eb37cd00f448a8312dca03.zip CMake-5c07d3900dfca4a1c7eb37cd00f448a8312dca03.tar.gz CMake-5c07d3900dfca4a1c7eb37cd00f448a8312dca03.tar.bz2 |
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
-rw-r--r-- | Source/cmcmd.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx index 433caef..69339b4 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; |