https://github.com/Kitware/CMake
Revision 8b21aa0af00a6366c301241bab081f2daae6104c authored by Brad King on 02 October 2018, 18:50:23 UTC, committed by Brad King on 02 October 2018, 18:58:11 UTC
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
1 parent f478fa6
History
Tip revision: 8b21aa0af00a6366c301241bab081f2daae6104c authored by Brad King on 02 October 2018, 18:50:23 UTC
VS: Fix CSharp flag selection when linking to a static C++ library
Tip revision: 8b21aa0
File Mode Size
DeveloperReference
CMakeLists.txt -rw-r--r-- 2.9 KB
doxyfile.in -rw-r--r-- 2.7 KB

back to top