diff options
author | Brad King <brad.king@kitware.com> | 2003-12-30 15:26:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-12-30 15:26:18 (GMT) |
commit | bcd4f87414a191b49b093e6094efd885322d24b5 (patch) | |
tree | 1c43adb5ef1534129c52fd9dd6f7b840206eb160 /Source/cmSystemTools.cxx | |
parent | ae69928e69b81a08272ff5eb53a94f198d4952e1 (diff) | |
download | CMake-bcd4f87414a191b49b093e6094efd885322d24b5.zip CMake-bcd4f87414a191b49b093e6094efd885322d24b5.tar.gz CMake-bcd4f87414a191b49b093e6094efd885322d24b5.tar.bz2 |
BUG: Do not call cmsysProcess_GetErrorString unless GetState returns State_Error.
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 9716dc6..06ba069 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -436,7 +436,7 @@ bool cmSystemTools::RunSingleCommand( } } } - else + else if(cmsysProcess_GetState(cp) == cmsysProcess_State_Error) { std::cerr << cmsysProcess_GetErrorString(cp) << "\n"; result = false; |