[cmake-commits] martink committed cmake.cxx 1.281 1.282

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Feb 27 12:47:16 EST 2007


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv25406/Source

Modified Files:
	cmake.cxx 
Log Message:
BUG: fix for unused variable


Index: cmake.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmake.cxx,v
retrieving revision 1.281
retrieving revision 1.282
diff -u -d -r1.281 -r1.282
--- cmake.cxx	27 Feb 2007 15:10:10 -0000	1.281
+++ cmake.cxx	27 Feb 2007 17:47:14 -0000	1.282
@@ -2975,7 +2975,13 @@
   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());
   



More information about the Cmake-commits mailing list