Selaa lähdekoodia

ENH: Added dependency hack to support wrapping test.

Brad King 23 vuotta sitten
vanhempi
sitoutus
b272f6455f
1 muutettua tiedostoa jossa 9 lisäystä ja 2 poistoa
  1. 9 2
      Source/cmITKWrapTclCommand.cxx

+ 9 - 2
Source/cmITKWrapTclCommand.cxx

@@ -70,8 +70,15 @@ bool cmITKWrapTclCommand::CreateCableRule(const char* configFile)
   // Generate the rule to run cable to generate wrappers.
   std::string command = this->GetCableFromCache();
   std::vector<std::string> depends;
-  depends.push_back(command);
-  std::vector<std::string > commandArgs;
+  
+  // Special case for CMake's wrapping test.  Don't add dependency if
+  // it is a dummy executable.
+  if(command != "echo")
+    {
+    depends.push_back(command);
+    }
+  
+  std::vector<std::string> commandArgs;
   commandArgs.push_back(inFile);
   commandArgs.push_back("-tcl");  
   std::string tmp = tclFile+".cxx";