cmLocalGenerator: Get enabled languages from cmState.

This commit is contained in:
Stephen Kelly 2015-05-19 23:14:18 +02:00 committed by Brad King
parent 7601a7b12d
commit 20c2fe4d10
1 changed files with 2 additions and 2 deletions

View File

@ -995,8 +995,8 @@ cmLocalGenerator::ExpandRuleVariable(std::string const& variable,
{ {
return this->Convert(cmSystemTools::GetCMakeCommand(), FULL, SHELL); return this->Convert(cmSystemTools::GetCMakeCommand(), FULL, SHELL);
} }
std::vector<std::string> enabledLanguages; std::vector<std::string> enabledLanguages =
this->GlobalGenerator->GetEnabledLanguages(enabledLanguages); this->GetState()->GetEnabledLanguages();
// loop over language specific replace variables // loop over language specific replace variables
int pos = 0; int pos = 0;
while(ruleReplaceVars[pos]) while(ruleReplaceVars[pos])