mirror of
https://github.com/bkryza/clang-uml.git
synced 2025-04-19 17:31:03 +08:00
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").