浏览代码

BUG: fix for bug 1700

Bill Hoffman 20 年之前
父节点
当前提交
d74d8aeb71
共有 1 个文件被更改,包括 5 次插入0 次删除
  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
   // Process the arguments
   this->SetArgs(args);
   this->SetArgs(args);
+  if(cmSystemTools::GetErrorOccuredFlag())
+    {
+    CMakeCommandUsage(args[0].c_str());
+    return -1;
+    }
   
   
   // set the cmake command
   // set the cmake command
   m_CMakeCommand = args[0];
   m_CMakeCommand = args[0];