Skip to content
Snippets Groups Projects
Commit ac66dec5 authored by Brad King's avatar Brad King
Browse files

Merge branch 'fix_csharp_custom_targets' into release

parents 6856c659 bd8b5401
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment