summaryrefslogtreecommitdiffstats
path: root/Source/cmAddCustomCommandCommand.cxx
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2002-01-16 22:29:24 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2002-01-16 22:29:24 (GMT)
commite0d02e10b5fd76a4bb3a9557e80914b438ab64c3 (patch)
tree97ff8bde060170f023bcd8961212ea073955efb6 /Source/cmAddCustomCommandCommand.cxx
parent16977f33f21bc0067cf534bcdfa68bfb66ff4abd (diff)
downloadCMake-e0d02e10b5fd76a4bb3a9557e80914b438ab64c3.zip
CMake-e0d02e10b5fd76a4bb3a9557e80914b438ab64c3.tar.gz
CMake-e0d02e10b5fd76a4bb3a9557e80914b438ab64c3.tar.bz2
Remove hack.
Diffstat (limited to 'Source/cmAddCustomCommandCommand.cxx')
-rw-r--r--Source/cmAddCustomCommandCommand.cxx28
1 files changed, 0 insertions, 28 deletions
diff --git a/Source/cmAddCustomCommandCommand.cxx b/Source/cmAddCustomCommandCommand.cxx
index a4eaf2c..b178f69 100644
--- a/Source/cmAddCustomCommandCommand.cxx
+++ b/Source/cmAddCustomCommandCommand.cxx
@@ -130,34 +130,6 @@ bool cmAddCustomCommandCommand::InitialPass(std::vector<std::string> const& args
depends,
outputs,
target.c_str());
-
-
- // All this is a hack for now
- int cc = outputs.size()-1;
- while( cc >= 0 )
- {
- std::string fileName = outputs[cc];
-
- std::string directory = cmSystemTools::GetFilenamePath(fileName);
- if ( directory == std::string() )
- {
- directory = outDir;
- }
- fileName = cmSystemTools::GetFilenameName(fileName);
-
- std::string::size_type pos = fileName.rfind(".");
- fileName = fileName.substr(0, pos);
- // Add the generated source to the package target's source list.
- cmSourceFile file;
- file.SetName(fileName.c_str(), directory.c_str(), "c", false);
- m_Makefile->AddSource(file, target.c_str());
- cc--;
- }
- if ( outputs.size() > 0 )
- {
- std::cout << "Target: " << target << std::endl;
- m_Makefile->GetTargets()[target.c_str()].GetSourceLists().push_back(target);
- }
return true;
}