Commit dd36c5f2 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

ENH: add configure style @var@ expansion

parent db267f53
......@@ -395,6 +395,11 @@ void cmMakefile::ExpandVariblesInString(std::string& source)
std::string variable = "${";
variable += (*i).first;
variable += "}";
cmSystemTools::ReplaceString(source, variable.c_str(),
(*i).second.c_str());
variable = "@";
variable += (*i).first;
variable += "@";
cmSystemTools::ReplaceString(source, variable.c_str(),
(*i).second.c_str());
}
......
......@@ -310,7 +310,8 @@ public:
* Expand all defined varibles in the string.
* Defined varibles come from the m_Definitions map.
* They are expanded with ${var} where var is the
* entry in the m_Definitions map.
* entry in the m_Definitions map. Also @var@ is
* expanded to match autoconf style expansions.
*/
void ExpandVariblesInString(std::string& source);
protected:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment