ENH: expand variables in arguments before the commands get them

This commit is contained in:
Bill Hoffman
2002-03-05 18:41:24 -05:00
parent 2b9140f6b5
commit 4651dbcfc6
37 changed files with 44 additions and 138 deletions
+1 -3
View File
@@ -27,9 +27,7 @@ bool cmAddDefinitionsCommand::InitialPass(std::vector<std::string> const& args)
for(std::vector<std::string>::const_iterator i = args.begin();
i != args.end(); ++i)
{
std::string str = *i;
m_Makefile->ExpandVariablesInString(str);
m_Makefile->AddDefineFlag(str.c_str());
m_Makefile->AddDefineFlag(i->c_str());
}
return true;
}