BUG: Needed to expand variables of definitions.

This commit is contained in:
Brad King 2001-08-01 16:13:13 -04:00
parent caab013c9a
commit fda98f8562
1 changed files with 3 additions and 1 deletions

View File

@ -51,7 +51,9 @@ bool cmAddDefinitionsCommand::InitialPass(std::vector<std::string>& args)
for(std::vector<std::string>::iterator i = args.begin();
i != args.end(); ++i)
{
m_Makefile->AddDefineFlag((*i).c_str());
std::string str = *i;
m_Makefile->ExpandVariablesInString(str);
m_Makefile->AddDefineFlag(str.c_str());
}
return true;
}