summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx
index 086f0b0..0dab6bf 100644
--- a/Source/cmLocalUnixMakefileGenerator.cxx
+++ b/Source/cmLocalUnixMakefileGenerator.cxx
@@ -1092,8 +1092,10 @@ cmLocalUnixMakefileGenerator::ExpandRuleVariables(std::string& s,
int pos = 0;
while(ruleReplaceVars[pos])
{
- if(lang)
- {
+ for(std::vector<std::string>::iterator i = enabledLanguages.begin();
+ i != enabledLanguages.end(); ++i)
+ {
+ lang = i->c_str();
std::string replace = "<";
replace += ruleReplaceVars[pos];
replace += ">";
@@ -1112,8 +1114,8 @@ cmLocalUnixMakefileGenerator::ExpandRuleVariables(std::string& s,
{
cmSystemTools::ReplaceString(s, actualReplace.c_str(), replace.c_str());
}
- pos++;
}
+ pos++;
}
}