~ubuntu-branches/ubuntu/hardy/cmake/hardy-backports

« back to all changes in this revision

Viewing changes to Source/cmFLTKWrapUICommand.cxx

  • Committer: Bazaar Package Importer
  • Author(s): Michael Casadevall
  • Date: 2008-11-13 13:39:06 UTC
  • mfrom: (15.1.8 jaunty)
  • Revision ID: james.westby@ubuntu.com-20081113133906-javgz50q1erhx5n5
Tags: 2.6.2-1ubuntu1~hardy1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
  Program:   CMake - Cross-Platform Makefile Generator
4
4
  Module:    $RCSfile: cmFLTKWrapUICommand.cxx,v $
5
5
  Language:  C++
6
 
  Date:      $Date: 2008-01-23 15:27:59 $
7
 
  Version:   $Revision: 1.38 $
 
6
  Date:      $Date: 2008-06-25 13:51:32 $
 
7
  Version:   $Revision: 1.38.2.1 $
8
8
 
9
9
  Copyright (c) 2002 Kitware, Inc., Insight Consortium.  All rights reserved.
10
10
  See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
121
121
  // people should add the srcs to the target themselves, but the old command
122
122
  // didn't support that, so check and see if they added the files in and if
123
123
  // they didn;t then print a warning and add then anyhow
 
124
  cmTarget* target = this->Makefile->FindTarget(this->Target.c_str());
 
125
  if(!target)
 
126
    {
 
127
    std::string msg = 
 
128
      "FLTK_WRAP_UI was called with a target that was never created: ";
 
129
    msg += this->Target;
 
130
    msg +=".  The problem was found while processing the source directory: ";
 
131
    msg += this->Makefile->GetStartDirectory();
 
132
    msg += ".  This FLTK_WRAP_UI call will be ignored.";
 
133
    cmSystemTools::Message(msg.c_str(),"Warning");
 
134
    return;
 
135
    }
124
136
  std::vector<cmSourceFile*> const& srcs = 
125
 
    this->Makefile->GetTargets()[this->Target].GetSourceFiles();
 
137
    target->GetSourceFiles();
126
138
  bool found = false;
127
139
  for (unsigned int i = 0; i < srcs.size(); ++i)
128
140
    {