summaryrefslogtreecommitdiff
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-10-04 10:42:03 -0400
committerBrad King <brad.king@kitware.com>2019-10-17 14:03:54 -0400
commitbcaecf6bcddfaec2b586bff870650a4a66b0ccc3 (patch)
tree169673c1339b5114d623c23ee5d326fadc68985e /Source/cmGeneratorTarget.cxx
parent324988a6b101f29d148badc32b44964aedae1163 (diff)
downloadcmake-bcaecf6bcddfaec2b586bff870650a4a66b0ccc3.tar.gz
Teach check for single-language targets to consider all configurations
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 0cc70c7d8b..d5e58b0062 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -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");