Files
RomantsovS 0021f7e2f6 Fix MSVC static runtime build with CMake >= 3.15 (#38623)
Since Cmake 3.15 there is no /MD flag in CMAKE_<LANG>_FLAGS(_<BUILD_TYPE>) variable like `CMAKE_CXX_FLAGS_DEBUG`. So we can't replace in with /MT.
Use new cmake functionality with `CMAKE_MSVC_RUNTIME_LIBRARY`.
The change is similar to similar to protobuf 2d4414f384/CMakeLists.txt (L213)
But grpc requires minimum cmake version 3.16 so we may simply replace old code with the new one

Closes #38623

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/38623 from RomantsovS:fix_msvc_static_runtime 169b2f1cee
PiperOrigin-RevId: 733475217
2025-03-04 14:56:31 -08:00
..