From 20c2fe4d10ac72b8352bdbea361124296a515d6c Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Tue, 19 May 2015 23:14:18 +0200 Subject: cmLocalGenerator: Get enabled languages from cmState. --- Source/cmLocalGenerator.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index aab6962..0c56838 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -995,8 +995,8 @@ cmLocalGenerator::ExpandRuleVariable(std::string const& variable, { return this->Convert(cmSystemTools::GetCMakeCommand(), FULL, SHELL); } - std::vector enabledLanguages; - this->GlobalGenerator->GetEnabledLanguages(enabledLanguages); + std::vector enabledLanguages = + this->GetState()->GetEnabledLanguages(); // loop over language specific replace variables int pos = 0; while(ruleReplaceVars[pos]) -- cgit v0.12