mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
ENH: Added APPEND option to ADD_CUSTOM_COMMAND to allow extra dependencies to be connected later. This is useful to create one rule and then have a macro add things to it later. This addresses bug#2151.
This commit is contained in:
@@ -94,6 +94,26 @@ const char* cmCustomCommand::GetComment() const
|
||||
return this->HaveComment? this->Comment.c_str() : no_comment;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
void cmCustomCommand::AppendCommands(const cmCustomCommandLines& commandLines)
|
||||
{
|
||||
for(cmCustomCommandLines::const_iterator i=commandLines.begin();
|
||||
i != commandLines.end(); ++i)
|
||||
{
|
||||
this->CommandLines.push_back(*i);
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
void cmCustomCommand::AppendDepends(const std::vector<std::string>& depends)
|
||||
{
|
||||
for(std::vector<std::string>::const_iterator i=depends.begin();
|
||||
i != depends.end(); ++i)
|
||||
{
|
||||
this->Depends.push_back(*i);
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool cmCustomCommand::GetEscapeOldStyle() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user