소스 검색

BUG: Need to return before configure step when running in script mode.

Brad King 21 년 전
부모
커밋
832fa0e609
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      Source/cmake.cxx

+ 6 - 0
Source/cmake.cxx

@@ -1269,6 +1269,12 @@ int cmake::Run(const std::vector<std::string>& args, bool noconfigure)
     return -1;
     }
 
+  // In script mode we terminate after running the script.
+  if(m_ScriptMode)
+    {
+    return 0;
+    }
+
   this->PreLoadCMakeFiles();
 
   std::string systemFile = this->GetHomeOutputDirectory();