ENH: mark some vars as advanced (and resort the list)
[cmake.git] / Source / cmIncludeRegularExpressionCommand.cxx
blobdb97fe03342dc0aaad1608c621e2590e7fc0ba60
1 /*=========================================================================
3 Program: Insight Segmentation & Registration Toolkit
4 Module: $RCSfile: cmIncludeRegularExpressionCommand.cxx,v $
5 Language: C++
6 Date: $Date: 2002-01-21 20:30:26 $
7 Version: $Revision: 1.6 $
9 Copyright (c) 2002 Insight Consortium. All rights reserved.
10 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #include "cmIncludeRegularExpressionCommand.h"
19 // cmIncludeRegularExpressionCommand
20 bool cmIncludeRegularExpressionCommand::InitialPass(std::vector<std::string> const& args)
22 if((args.size() < 1) || (args.size() > 2))
24 this->SetError("called with incorrect number of arguments");
25 return false;
27 m_Makefile->SetIncludeRegularExpression(args[0].c_str());
29 if(args.size() > 1)
31 m_Makefile->SetComplainRegularExpression(args[1].c_str());
34 return true;