diff options
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 bbe15a2..ad3a0f4 100644 --- a/Source/cmAddCustomTargetCommand.cxx +++ b/Source/cmAddCustomTargetCommand.cxx @@ -43,16 +43,27 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // cmAddCustomTargetCommand bool cmAddCustomTargetCommand::Invoke(std::vector<std::string>& args) { + bool all = false; + if(args.size() < 2 ) { this->SetError("called with incorrect number of arguments"); return false; } - std::vector<std::string> dep; m_Makefile->ExpandVariablesInString(args[0]); m_Makefile->ExpandVariablesInString(args[1]); + + // all target option + if (args.size() >= 3) + { + if (args[2] == "ALL") + { + all = true; + } + } m_Makefile->AddUtilityCommand(args[0].c_str(), - args[1].c_str()); + args[1].c_str(), all); + return true; } |