FIX: stupid pb fixed (close to being medieval'ed by The Ken)
[cmake.git] / Source / cmSubdirCommand.cxx
blob8e82c483117ae938ef12ede6755c36624dbd5657
1 /*=========================================================================
3 Program: Insight Segmentation & Registration Toolkit
4 Module: $RCSfile: cmSubdirCommand.cxx,v $
5 Language: C++
6 Date: $Date: 2002-03-29 19:20:26 $
7 Version: $Revision: 1.8 $
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 "cmSubdirCommand.h"
19 // cmSubdirCommand
20 bool cmSubdirCommand::InitialPass(std::vector<std::string> const& argsIn)
22 if(argsIn.size() < 1 )
24 this->SetError("called with incorrect number of arguments");
25 return false;
27 std::vector<std::string> args;
28 cmSystemTools::ExpandListArguments(argsIn, args);
30 for(std::vector<std::string>::const_iterator i = args.begin();
31 i != args.end(); ++i)
33 m_Makefile->AddSubDirectory(i->c_str());
35 return true;