ENH: add configure style @var@ expansion
This commit is contained in:
parent
db267f533b
commit
dd36c5f296
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue