Merge topic 'target_compile_features-only-apply-to-enabled-languages'

a3cafa4237 compile_features: Ignore features that map to languages that aren't enabled

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6255
This commit is contained in:
Brad King
2021-06-28 13:25:55 +00:00
committed by Kitware Robot
8 changed files with 11 additions and 60 deletions
+4
View File
@@ -387,6 +387,10 @@ bool cmStandardLevelResolver::CheckCompileFeaturesAvailable(
return false;
}
if (!this->Makefile->GetGlobalGenerator()->GetLanguageEnabled(lang)) {
return true;
}
const char* features = this->CompileFeaturesAvailable(lang, error);
if (!features) {
return false;