1 /*=========================================================================
3 Program: Insight Segmentation & Registration Toolkit
4 Module: $RCSfile: cmAddDefinitionsCommand.cxx,v $
6 Date: $Date: 2002-07-20 12:55:55 $
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 "cmAddDefinitionsCommand.h"
19 // cmAddDefinitionsCommand
20 bool cmAddDefinitionsCommand::InitialPass(std::vector
<std::string
> const& argsIn
)
22 // it is OK to have no arguments
23 if(argsIn
.size() < 1 )
27 std::vector
<std::string
> args
;
28 cmSystemTools::ExpandListArguments(argsIn
, args
);
30 for(std::vector
<std::string
>::const_iterator i
= args
.begin();
33 m_Makefile
->AddDefineFlag(i
->c_str());