diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-05-19 21:14:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-05-20 15:21:10 (GMT) |
commit | 20c2fe4d10ac72b8352bdbea361124296a515d6c (patch) | |
tree | 19eeb55e0966a2281385efc137b9b03542a5dc89 /Source/cmLocalGenerator.cxx | |
parent | 7601a7b12d1c4a3bddb1ca34dcf38e1aea188698 (diff) | |
download | CMake-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.cxx | 4 |
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]) |