From 42c41d77fa557c0ed2cb75e288544132c4d92254 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Tue, 27 Feb 2007 12:47:14 -0500 Subject: BUG: fix for unused variable --- Source/cmake.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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& 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()); -- cgit v0.12