~ubuntu-branches/ubuntu/utopic/cmake/utopic

« back to all changes in this revision

Viewing changes to Source/cmAddDependenciesCommand.cxx

  • Committer: Package Import Robot
  • Author(s): Harald Sitter
  • Date: 2013-10-10 12:54:39 UTC
  • mfrom: (1.14.7)
  • Revision ID: package-import@ubuntu.com-20131010125439-h0ahaj004on6oj92
Tags: 2.8.12-0ubuntu1
New upstream release LP: #1246701

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    }
25
25
 
26
26
  std::string target_name = args[0];
 
27
  if(this->Makefile->IsAlias(target_name.c_str()))
 
28
    {
 
29
    cmOStringStream e;
 
30
    e << "Cannot add target-level dependencies to alias target \""
 
31
      << target_name << "\".\n";
 
32
    this->Makefile->IssueMessage(cmake::FATAL_ERROR, e.str());
 
33
    }
27
34
  if(cmTarget* target = this->Makefile->FindTargetToUse(target_name.c_str()))
28
35
    {
29
36
    std::vector<std::string>::const_iterator s = args.begin();