diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-01-16 22:26:09 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-01-16 22:26:09 (GMT) |
commit | 16977f33f21bc0067cf534bcdfa68bfb66ff4abd (patch) | |
tree | 0eb5f45f0a72dcadbc67980577606230275a7baf /Source/cmAddCustomCommandCommand.cxx | |
parent | cddba435b87de812aed6aecfcecd4d3e0508f633 (diff) | |
download | CMake-16977f33f21bc0067cf534bcdfa68bfb66ff4abd.zip CMake-16977f33f21bc0067cf534bcdfa68bfb66ff4abd.tar.gz CMake-16977f33f21bc0067cf534bcdfa68bfb66ff4abd.tar.bz2 |
Hack to make it work almost like before
Diffstat (limited to 'Source/cmAddCustomCommandCommand.cxx')
-rw-r--r-- | Source/cmAddCustomCommandCommand.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmAddCustomCommandCommand.cxx b/Source/cmAddCustomCommandCommand.cxx index c4c45a2..a4eaf2c 100644 --- a/Source/cmAddCustomCommandCommand.cxx +++ b/Source/cmAddCustomCommandCommand.cxx @@ -131,6 +131,8 @@ bool cmAddCustomCommandCommand::InitialPass(std::vector<std::string> const& args outputs, target.c_str()); + + // All this is a hack for now int cc = outputs.size()-1; while( cc >= 0 ) { @@ -151,7 +153,11 @@ bool cmAddCustomCommandCommand::InitialPass(std::vector<std::string> const& args m_Makefile->AddSource(file, target.c_str()); cc--; } - m_Makefile->GetTargets()[target.c_str()].GetSourceLists().push_back(target); + if ( outputs.size() > 0 ) + { + std::cout << "Target: " << target << std::endl; + m_Makefile->GetTargets()[target.c_str()].GetSourceLists().push_back(target); + } return true; } |