Răsfoiți Sursa

cmMakefile: don't check IsScriptable

Daniel Pfeifer 8 ani în urmă
părinte
comite
c3f41af2be
1 a modificat fișierele cu 1 adăugiri și 14 ștergeri
  1. 1 14
      Source/cmMakefile.cxx

+ 1 - 14
Source/cmMakefile.cxx

@@ -272,11 +272,7 @@ bool cmMakefile::ExecuteCommand(const cmListFileFunction& lff,
     pcmd->SetMakefile(this);
     pcmd->SetMakefile(this);
 
 
     // Decide whether to invoke the command.
     // Decide whether to invoke the command.
-    if (!cmSystemTools::GetFatalErrorOccured() &&
-        (this->GetCMakeInstance()->GetWorkingMode() != cmake::SCRIPT_MODE ||
-         pcmd->IsScriptable()))
-
-    {
+    if (!cmSystemTools::GetFatalErrorOccured()) {
       // if trace is enabled, print out invoke information
       // if trace is enabled, print out invoke information
       if (this->GetCMakeInstance()->GetTrace()) {
       if (this->GetCMakeInstance()->GetTrace()) {
         this->PrintCommandTrace(lff);
         this->PrintCommandTrace(lff);
@@ -298,15 +294,6 @@ bool cmMakefile::ExecuteCommand(const cmListFileFunction& lff,
         // use the command
         // use the command
         this->FinalPassCommands.push_back(pcmd.release());
         this->FinalPassCommands.push_back(pcmd.release());
       }
       }
-    } else if (this->GetCMakeInstance()->GetWorkingMode() ==
-                 cmake::SCRIPT_MODE &&
-               !pcmd->IsScriptable()) {
-      std::string error = "Command ";
-      error += pcmd->GetName();
-      error += "() is not scriptable";
-      this->IssueMessage(cmake::FATAL_ERROR, error);
-      result = false;
-      cmSystemTools::SetFatalErrorOccured();
     }
     }
   } else {
   } else {
     if (!cmSystemTools::GetFatalErrorOccured()) {
     if (!cmSystemTools::GetFatalErrorOccured()) {