ENH: add configure style @var@ expansion

This commit is contained in:
Bill Hoffman 2001-02-13 16:48:00 -05:00
parent db267f533b
commit dd36c5f296
2 changed files with 7 additions and 1 deletions

View File

@ -395,6 +395,11 @@ void cmMakefile::ExpandVariblesInString(std::string& source)
std::string variable = "${"; std::string variable = "${";
variable += (*i).first; variable += (*i).first;
variable += "}"; variable += "}";
cmSystemTools::ReplaceString(source, variable.c_str(),
(*i).second.c_str());
variable = "@";
variable += (*i).first;
variable += "@";
cmSystemTools::ReplaceString(source, variable.c_str(), cmSystemTools::ReplaceString(source, variable.c_str(),
(*i).second.c_str()); (*i).second.c_str());
} }

View File

@ -310,7 +310,8 @@ public:
* Expand all defined varibles in the string. * Expand all defined varibles in the string.
* Defined varibles come from the m_Definitions map. * Defined varibles come from the m_Definitions map.
* They are expanded with ${var} where var is the * 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); void ExpandVariblesInString(std::string& source);
protected: protected: