summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-05-08 21:45:31 (GMT)
committerBrad King <brad.king@kitware.com>2002-05-08 21:45:31 (GMT)
commitb272f6455f1103353af2b9b962e55d5112cbfed8 (patch)
tree41d7b9c1c669c17a12d9acce1eb26fd47752ad44
parent8e69c9861593e6509660f92713bceb7d0aacf317 (diff)
downloadCMake-b272f6455f1103353af2b9b962e55d5112cbfed8.zip
CMake-b272f6455f1103353af2b9b962e55d5112cbfed8.tar.gz
CMake-b272f6455f1103353af2b9b962e55d5112cbfed8.tar.bz2
ENH: Added dependency hack to support wrapping test.
-rw-r--r--Source/cmITKWrapTclCommand.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/cmITKWrapTclCommand.cxx b/Source/cmITKWrapTclCommand.cxx
index abda785..838fc3f 100644
--- a/Source/cmITKWrapTclCommand.cxx
+++ b/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";