mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
committed by
Brad King
parent
e1adec32b8
commit
bd8b5401cf
@@ -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