summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2003-06-05 18:37:35 (GMT)
committerKen Martin <ken.martin@kitware.com>2003-06-05 18:37:35 (GMT)
commitd5d0f17e5cb4eea7af9940daefbf8d55df964456 (patch)
tree7d7eb9f356851195beb6845bbba61dc9ef8e6d43 /Source
parentb1095dd2f091dd01efb24ebb6f85279fa91725ad (diff)
downloadCMake-d5d0f17e5cb4eea7af9940daefbf8d55df964456.zip
CMake-d5d0f17e5cb4eea7af9940daefbf8d55df964456.tar.gz
CMake-d5d0f17e5cb4eea7af9940daefbf8d55df964456.tar.bz2
updated for new custom command
Diffstat (limited to 'Source')
-rw-r--r--Source/cmITKWrapTclCommand.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/cmITKWrapTclCommand.cxx b/Source/cmITKWrapTclCommand.cxx
index 86791a9..8bbb11a 100644
--- a/Source/cmITKWrapTclCommand.cxx
+++ b/Source/cmITKWrapTclCommand.cxx
@@ -187,13 +187,8 @@ bool cmITKWrapTclCommand::CreateCableRule(const char* configFile)
this->AddDependencies(info, depends, visited);
}
- std::vector<std::string> outputs;
- outputs.push_back(outDir+"/"+tclFile+".cxx");
-
- m_Makefile->AddCustomCommand(inFile.c_str(),
- command.c_str(),
- commandArgs, depends,
- outputs, m_TargetName.c_str());
+ std::string output;
+ output = outDir+"/"+tclFile+".cxx";
// Add the source to the makefile.
cmSourceFile file;
@@ -202,10 +197,15 @@ bool cmITKWrapTclCommand::CreateCableRule(const char* configFile)
file.GetDepends().push_back(inFile.c_str());
file.GetDepends().push_back("CableTclFacility/ctCalls.h");
m_Makefile->AddSource(file);
+
+ m_Makefile->AddCustomCommandToOutput(output.c_str(),
+ command.c_str(),
+ commandArgs,
+ inFile.c_str(),
+ depends);
// Add the generated source to the package's source list.
- std::string srcname = file.GetSourceName() + ".cxx";
- m_Target->GetSourceLists().push_back(srcname);
+ m_Target->GetSourceLists().push_back(output);
return true;
}