mirror of
https://github.com/reactos/CMake.git
synced 2025-03-02 08:55:41 +00:00
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:
commit
c912b72458
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user