~ubuntu-branches/ubuntu/jaunty/cmake/jaunty-security

« back to all changes in this revision

Viewing changes to Source/cmRemoveDefinitionsCommand.cxx

  • Committer: Bazaar Package Importer
  • Author(s): A. Maitland Bottoms
  • Date: 2006-06-18 16:34:11 UTC
  • mfrom: (1.4.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060618163411-pi234s3v6jwlcmof
Tags: 2.4.2-1
* New upstream release (Closes: #338324)
* Put cmake .vim files into /usr/share/vim/addons/plugin/
  where they can be used. (Closes: #366663)
* Install cmake-mode.el so it can be used. (Closes: #366664)
* Ensure cmake FindKDE locates KDE libraries on Debian
  based distributions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
  Program:   CMake - Cross-Platform Makefile Generator
4
4
  Module:    $RCSfile: cmRemoveDefinitionsCommand.cxx,v $
5
5
  Language:  C++
6
 
  Date:      $Date: 2004/04/15 17:58:10 $
7
 
  Version:   $Revision: 1.1 $
 
6
  Date:      $Date: 2006/05/14 19:22:43 $
 
7
  Version:   $Revision: 1.2.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.
17
17
#include "cmRemoveDefinitionsCommand.h"
18
18
 
19
19
// cmRemoveDefinitionsCommand
20
 
bool cmRemoveDefinitionsCommand::InitialPass(std::vector<std::string> const& args)
 
20
bool cmRemoveDefinitionsCommand
 
21
::InitialPass(std::vector<std::string> const& args)
21
22
{
22
23
  // it is OK to have no arguments
23
24
  if(args.size() < 1 )
28
29
  for(std::vector<std::string>::const_iterator i = args.begin();
29
30
      i != args.end(); ++i)
30
31
    {
31
 
    m_Makefile->RemoveDefineFlag(i->c_str());
 
32
    this->Makefile->RemoveDefineFlag(i->c_str());
32
33
    }
33
34
  return true;
34
35
}