Teach check for single-language targets to consider all configurations

This commit is contained in:
Brad King
2019-10-04 10:42:03 -04:00
parent 324988a6b1
commit bcaecf6bcd
2 changed files with 2 additions and 4 deletions

View File

@@ -6356,8 +6356,7 @@ bool cmGeneratorTarget::IsCSharpOnly() const
this->GetType() != cmStateEnums::EXECUTABLE) {
return false;
}
std::set<std::string> languages;
this->GetLanguages(languages, "");
std::set<std::string> languages = this->GetAllConfigCompileLanguages();
// Consider an explicit linker language property, but *not* the
// computed linker language that may depend on linked targets.
const char* linkLang = this->GetProperty("LINKER_LANGUAGE");