diff options
author | Ken Martin <ken.martin@kitware.com> | 2007-02-27 17:47:14 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2007-02-27 17:47:14 (GMT) |
commit | 42c41d77fa557c0ed2cb75e288544132c4d92254 (patch) | |
tree | 2722697c6efde3f234c6afa34215337688b713b7 /Source/cmake.cxx | |
parent | 0ce8c158cc24f78ecfb96fa6b437cc2b91df59b5 (diff) | |
download | CMake-42c41d77fa557c0ed2cb75e288544132c4d92254.zip CMake-42c41d77fa557c0ed2cb75e288544132c4d92254.tar.gz CMake-42c41d77fa557c0ed2cb75e288544132c4d92254.tar.bz2 |
BUG: fix for unused variable
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index af1c0a8..d549203 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -2975,7 +2975,13 @@ int cmake::GetSystemInformation(std::vector<std::string>& args) resultArg += resultFile; args2.push_back(resultArg); int res = cm.Run(args2, false); - + + if (res != 0) + { + std::cerr << "Error: --system-information failed on internal CMake!\n"; + return res; + } + // change back to the original directory cmSystemTools::ChangeDirectory(cwd.c_str()); |