diff options
author | Ken Martin <ken.martin@kitware.com> | 2003-06-03 14:30:23 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2003-06-03 14:30:23 (GMT) |
commit | ba68f771b369e65476e7ce12aa8dd1cf18d7f529 (patch) | |
tree | 4580bb0cd83663ac32e7234b47f1a03881a2b709 /Source/cmAddCustomTargetCommand.cxx | |
parent | 4f55e4870d0dea6f700943ccd4bac958c478cff4 (diff) | |
download | CMake-ba68f771b369e65476e7ce12aa8dd1cf18d7f529.zip CMake-ba68f771b369e65476e7ce12aa8dd1cf18d7f529.tar.gz CMake-ba68f771b369e65476e7ce12aa8dd1cf18d7f529.tar.bz2 |
yikes added new custom command support
Diffstat (limited to 'Source/cmAddCustomTargetCommand.cxx')
-rw-r--r-- | Source/cmAddCustomTargetCommand.cxx | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/Source/cmAddCustomTargetCommand.cxx b/Source/cmAddCustomTargetCommand.cxx index 77ab3ef..8ab470c 100644 --- a/Source/cmAddCustomTargetCommand.cxx +++ b/Source/cmAddCustomTargetCommand.cxx @@ -45,14 +45,25 @@ bool cmAddCustomTargetCommand::InitialPass(std::vector<std::string> const& args) command = *s; ++s; } - for (;s != args.end(); ++s) + for (;s != args.end() && *s != "DEPENDS"; ++s) { arguments += cmSystemTools::EscapeSpaces(s->c_str()); arguments += " "; } + std::vector<std::string> depends; + // skip depends keyword + if (s != args.end()) + { + ++s; + } + while (s != args.end()) + { + depends.push_back(*s); + ++s; + } m_Makefile->AddUtilityCommand(args[0].c_str(), command.c_str(), - arguments.c_str(), all); + arguments.c_str(), all, depends); return true; } |