CMake/Tests/CSharpLinkToCxx
Brad King 375b420fdf CSharp: Fix regression in VS project type selection
A that target contains only `.cs` sources should be generated as a
`.csproj` project even if it links to non-CSharp static libraries.
The latter case was broken by refactoring in commit v3.12.0-rc1~160^2~7
(remove TargetIsCSharpOnly() and use methods from cmGeneratorTarget,
2018-03-19).  The reason is that the `HasLanguage` method added by
commit v3.12.0-rc1~239^2~6 (cmGeneratorTarget: add HasLanguage() as
wrapper for GetLanguages(), 2018-03-19) enforces its "exclusive" check
on the combined set of source file languages and the link language.
To restore the original `TargetIsCSharpOnly` semantics, update
`HasLanguage` to enforce exclusiveness only on the list of sources.

Fixes: #18239
2018-10-02 14:58:11 -04:00
..
cli.cpp Vs: allow CSharp targets to be linked to CXX targets 2017-06-21 08:37:15 +02:00
cli.hpp Vs: allow CSharp targets to be linked to CXX targets 2017-06-21 08:37:15 +02:00
CMakeLists.txt CSharp: Fix regression in VS project type selection 2018-10-02 14:58:11 -04:00
cpp_native.cpp VS: Do not reference output assemblies if not possible for CSharp target 2017-09-05 09:41:40 -04:00
cpp_native.hpp VS: Do not reference output assemblies if not possible for CSharp target 2017-09-05 09:41:40 -04:00
cpp_static.cpp CSharp: Fix regression in VS project type selection 2018-10-02 14:58:11 -04:00
csharp.cs Vs: allow CSharp targets to be linked to CXX targets 2017-06-21 08:37:15 +02:00