diff options
author | Brad King <brad.king@kitware.com> | 2017-03-08 13:38:47 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-03-08 13:39:01 (GMT) |
commit | c912b72458e94528a560929038a653d6d46cd408 (patch) | |
tree | eadc076d07de908d196105a03b0202c4f9f6119e /Source | |
parent | 83f9c6275d8f2d20da924a929d659135335a213a (diff) | |
parent | bd8b5401cfb2088d5e5494d04236eda36278da8b (diff) | |
download | CMake-c912b72458e94528a560929038a653d6d46cd408.zip CMake-c912b72458e94528a560929038a653d6d46cd408.tar.gz CMake-c912b72458e94528a560929038a653d6d46cd408.tar.bz2 |
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
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGlobalVisualStudioGenerator.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx index cc2536c..ced0c26 100644 --- a/Source/cmGlobalVisualStudioGenerator.cxx +++ b/Source/cmGlobalVisualStudioGenerator.cxx @@ -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) { |