summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-11-10 15:41:12 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-11-10 15:41:15 (GMT)
commit11e2f53e3051a3da681a9ed9e4255c2d8fbc86fc (patch)
tree61ea5141bfef4ef447039911f8edc67ba0d51a73
parentfd93616b745218edbeaa2077da3fb78842b34a7b (diff)
parent5c07d3900dfca4a1c7eb37cd00f448a8312dca03 (diff)
downloadCMake-11e2f53e3051a3da681a9ed9e4255c2d8fbc86fc.zip
CMake-11e2f53e3051a3da681a9ed9e4255c2d8fbc86fc.tar.gz
CMake-11e2f53e3051a3da681a9ed9e4255c2d8fbc86fc.tar.bz2
Merge topic 'windows-mt-update-quiet'
5c07d390 cmcmd: Fix typo in RunCommand logic Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1473
-rw-r--r--Source/cmcmd.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx
index 24c67c6..449db9d 100644
--- a/Source/cmcmd.cxx
+++ b/Source/cmcmd.cxx
@@ -1595,7 +1595,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;