summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-19 21:14:18 (GMT)
committerBrad King <brad.king@kitware.com>2015-05-20 15:21:10 (GMT)
commit20c2fe4d10ac72b8352bdbea361124296a515d6c (patch)
tree19eeb55e0966a2281385efc137b9b03542a5dc89 /Source/cmLocalGenerator.cxx
parent7601a7b12d1c4a3bddb1ca34dcf38e1aea188698 (diff)
downloadCMake-20c2fe4d10ac72b8352bdbea361124296a515d6c.zip
CMake-20c2fe4d10ac72b8352bdbea361124296a515d6c.tar.gz
CMake-20c2fe4d10ac72b8352bdbea361124296a515d6c.tar.bz2
cmLocalGenerator: Get enabled languages from cmState.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx4
1 files 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<std::string> enabledLanguages;
- this->GlobalGenerator->GetEnabledLanguages(enabledLanguages);
+ std::vector<std::string> enabledLanguages =
+ this->GetState()->GetEnabledLanguages();
// loop over language specific replace variables
int pos = 0;
while(ruleReplaceVars[pos])