diff options
author | Brad King <brad.king@kitware.com> | 2018-05-04 13:35:32 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-05-04 13:36:08 (GMT) |
commit | efaaa729aa1c4ab2c351e7fb5ed5ea8712957db8 (patch) | |
tree | 986031b1e10ed3bfeb89aec0ee66d2c37a13f460 /Source | |
parent | c89d2f4a6ae3e6cb0f87493cac3f5f723bb4f62e (diff) | |
parent | 4f82199befee194aa924fd4dcdb2f4aad1f7dab6 (diff) | |
download | CMake-efaaa729aa1c4ab2c351e7fb5ed5ea8712957db8.zip CMake-efaaa729aa1c4ab2c351e7fb5ed5ea8712957db8.tar.gz CMake-efaaa729aa1c4ab2c351e7fb5ed5ea8712957db8.tar.bz2 |
Merge topic 'genex-complang-not-loaded'
4f82199bef Genex: Allow COMPILE_LANGUAGE to name a language that is not loaded
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2031
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGeneratorExpressionNode.cxx | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Source/cmGeneratorExpressionNode.cxx b/Source/cmGeneratorExpressionNode.cxx index 399e894..7b35bce 100644 --- a/Source/cmGeneratorExpressionNode.cxx +++ b/Source/cmGeneratorExpressionNode.cxx @@ -1013,16 +1013,7 @@ static const struct CompileLanguageNode : public cmGeneratorExpressionNode return std::string(); } - std::vector<std::string> enabledLanguages; cmGlobalGenerator* gg = context->LG->GetGlobalGenerator(); - gg->GetEnabledLanguages(enabledLanguages); - if (!parameters.empty() && - std::find(enabledLanguages.begin(), enabledLanguages.end(), - parameters.front()) == enabledLanguages.end()) { - reportError(context, content->GetOriginalExpression(), - "$<COMPILE_LANGUAGE:...> Unknown language."); - return std::string(); - } std::string genName = gg->GetName(); if (genName.find("Makefiles") == std::string::npos && genName.find("Ninja") == std::string::npos && |