diff options
author | Brad King <brad.king@kitware.com> | 2018-10-02 18:50:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-10-02 18:58:11 (GMT) |
commit | 8b21aa0af00a6366c301241bab081f2daae6104c (patch) | |
tree | d19379897392b9ecf8ee0f7e027ad23d2457d5cb /Source/cmGlobalVisualStudio7Generator.h | |
parent | f478fa633daeb1432805821adddc40730ffd283d (diff) | |
download | CMake-8b21aa0af00a6366c301241bab081f2daae6104c.zip CMake-8b21aa0af00a6366c301241bab081f2daae6104c.tar.gz CMake-8b21aa0af00a6366c301241bab081f2daae6104c.tar.bz2 |
VS: Fix CSharp flag selection when linking to a static C++ library
When a CSharp target links to a static C++ library, CMake will compute
the link language as C++ instead of CSharp. That may be incorrect and
needs further investigation, but it does not affect how VS drives C#
linking. However, it does break our flag language selection logic
and causes C++ flags to be used for CSharp. In particular, this
drops the `-platform:x86` flag on 32-bit builds.
Fix this by always selecting the CSharp flags when generating a
`.csproj` project type.
Issue: #18239
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.h')
0 files changed, 0 insertions, 0 deletions