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

« back to all changes in this revision

Viewing changes to Source/cmEndIfCommand.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: cmEndIfCommand.cxx,v $
5
5
  Language:  C++
6
 
  Date:      $Date: 2003/05/24 14:07:58 $
7
 
  Version:   $Revision: 1.12 $
 
6
  Date:      $Date: 2006/05/11 02:15:09 $
 
7
  Version:   $Revision: 1.13.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.
19
19
bool cmEndIfCommand::InitialPass(std::vector<std::string> const&)
20
20
{
21
21
  const char* versionValue
22
 
    = m_Makefile->GetDefinition("CMAKE_MINIMUM_REQUIRED_VERSION");
 
22
    = this->Makefile->GetDefinition("CMAKE_MINIMUM_REQUIRED_VERSION");
23
23
  if (!versionValue || (atof(versionValue) <= 1.4))
24
24
    {
25
25
    return true;
26
26
    }
27
27
  
28
 
  this->SetError("An ENDIF command was found outside of a proper IF ENDIF structure. Or its arguments did not match the opening IF command.");
 
28
  this->SetError("An ENDIF command was found outside of a proper "
 
29
                 "IF ENDIF structure. Or its arguments did not match "
 
30
                 "the opening IF command.");
29
31
  return false;
30
32
}
31
33