leha-bot 57f7280256 Fix MSVC_RUNTIME_LIBRARY inconsistencies
Use CMake defaults as sane default, as LLVM also uses it by default.
1. The policy was ambiguous as CMake sets it to NEW since CMake 3.15 (as
   we have CMake 3.16);
2. The `/MD` flag just override the target's property
   MSVC_RUNTIME_LIBRARY, so all configuration types used the /MD flag
   (instead of CMAKE_MSVC_RUNTIME_LIBRARY);
3. The manual override for CMAKE_MSVC_RUNTIME_LIBRARY was removed as a
   potential ODR-violation against LLVM's used MSVC runtime and a real
   runtime mismatch (which follows to LNK2038 error with text like
   "Detected mismatch for "RuntimeLibrary": value "MDd_DynamicDebug"
   doesn't match value "MD_StaticDebug").
2025-01-17 11:43:35 +03:00
..