mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
1 parent
e1adec32b8
commit
bd8b5401cf
1 file changed
+4
@@ -750,6 +750,10 @@ bool cmGlobalVisualStudioGenerator::TargetIsCSharpOnly(
|
||||
if (!gt->GetConfigCommonSourceFiles(sources)) {
|
||||
return false;
|
||||
}
|
||||
// Only "real" targets are allowed to be C# targets.
|
||||
if (gt->Target->GetType() > cmStateEnums::OBJECT_LIBRARY) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
gt->GetLanguages(languages, "");
|
||||
if (languages.size() == 1) {
|
||||
|
||||
Reference in new issue
Block a user