summaryrefslogtreecommitdiffstats
path: root/Source/cmState.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-04-30 12:56:48 (GMT)
committerBrad King <brad.king@kitware.com>2015-04-30 13:08:25 (GMT)
commit27343e3b68e0aa0c923f1ad666575ed40efed211 (patch)
treeadd7cd98b056ce82feb5d47e2dc9cc5a3629fae0 /Source/cmState.h
parent8469b6f6941ec8afe30f6c5a94f045e596bfe22a (diff)
downloadCMake-27343e3b68e0aa0c923f1ad666575ed40efed211.zip
CMake-27343e3b68e0aa0c923f1ad666575ed40efed211.tar.gz
CMake-27343e3b68e0aa0c923f1ad666575ed40efed211.tar.bz2
cmGlobalGenerator: Finish storing enabled languages in cmState
In commit 74de9a73 (cmGlobalGenerator: Delegate storage of enabled languages to cmState, 2015-04-11) the original LanguageEnabled member of cmGlobalGenerator was left behind by mistake. One use of it in EnableLanguagesFromGenerator (for try_compile) was left, but the member is not populated anymore. Drop the member and teach EnableLanguagesFromGenerator to copy the list of enabled languages from one cmState to the other. Reported-by: Matt McCormick <matt.mccormick@kitware.com>
Diffstat (limited to 'Source/cmState.h')
-rw-r--r--Source/cmState.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmState.h b/Source/cmState.h
index 34b2ccf..2353671 100644
--- a/Source/cmState.h
+++ b/Source/cmState.h
@@ -77,6 +77,7 @@ public:
void SetLanguageEnabled(std::string const& l);
bool GetLanguageEnabled(std::string const& l) const;
std::vector<std::string> GetEnabledLanguages() const;
+ void SetEnabledLanguages(std::vector<std::string> const& langs);
void ClearEnabledLanguages();
bool GetIsInTryCompile() const;