mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
ENH: expand variables in arguments before the commands get them
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user