FIX: stupid pb fixed (close to being medieval'ed by The Ken)
[cmake.git] / Source / cmIncludeDirectoryCommand.cxx
blob1e1b6010bf6b98ec19b5c0c45bc1656bd6d75115
1 /*=========================================================================
3 Program: Insight Segmentation & Registration Toolkit
4 Module: $RCSfile: cmIncludeDirectoryCommand.cxx,v $
5 Language: C++
6 Date: $Date: 2002-07-22 14:00:49 $
7 Version: $Revision: 1.9 $
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 "cmIncludeDirectoryCommand.h"
18 #include "cmCacheManager.h"
19 // cmIncludeDirectoryCommand
20 bool cmIncludeDirectoryCommand::InitialPass(std::vector<std::string> const& argsIn)
22 if(argsIn.size() < 1 )
24 return true;
26 std::vector<std::string> args;
27 cmSystemTools::ExpandListArguments(argsIn, args);
29 std::vector<std::string>::const_iterator i = args.begin();
31 bool before = false;
32 if ((*i) == "BEFORE")
34 before = true;
35 ++i;
38 for(; i != args.end(); ++i)
40 m_Makefile->AddIncludeDirectory((*i).c_str(), before);
42 return true;