mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
Teach check for single-language targets to consider all configurations
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user