Merge topic 'fix_csharp_custom_targets'

bd8b5401 VS: Do not treat custom targets as CSharp targets

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !557
This commit is contained in:
Brad King 2017-03-08 13:38:47 +00:00 committed by Kitware Robot
commit c912b72458

View File

@ -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) {