mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 15:18:26 -05:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user