Skip to content
Snippets Groups Projects
Commit c912b724 authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'fix_csharp_custom_targets'


bd8b5401 VS: Do not treat custom targets as CSharp targets

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !557
parents 83f9c627 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