diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-09-24 14:07:57 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-09-24 14:07:57 (GMT) |
commit | 1603e16cc5106d8c77b0f460af498c0057f61331 (patch) | |
tree | cc33b0d327a08c4c890942e45b76dd70ca532491 /Source/cmLocalUnixMakefileGenerator.cxx | |
parent | 9e08d07be2c133f0b178ff21714b1f52d9272ae6 (diff) | |
download | CMake-1603e16cc5106d8c77b0f460af498c0057f61331.zip CMake-1603e16cc5106d8c77b0f460af498c0057f61331.tar.gz CMake-1603e16cc5106d8c77b0f460af498c0057f61331.tar.bz2 |
ENH: replace all enabled languages in rule vars
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator.cxx | 8 |
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++; } } |