Browse Source

BUG: fix for bug 1700

Bill Hoffman 20 năm trước cách đây
mục cha
commit
d74d8aeb71
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      Source/cmake.cxx

+ 5 - 0
Source/cmake.cxx

@@ -1241,6 +1241,11 @@ int cmake::Run(const std::vector<std::string>& args, bool noconfigure)
 {
   // Process the arguments
   this->SetArgs(args);
+  if(cmSystemTools::GetErrorOccuredFlag())
+    {
+    CMakeCommandUsage(args[0].c_str());
+    return -1;
+    }
   
   // set the cmake command
   m_CMakeCommand = args[0];