Update USE_MSVC_RUNTIME_LIBRARY_DLL for CMake 3.15

This makes USE_MSVC_RUNTIME_LIBRARY_DLL update the directory scope
CMAKE_MSVC_RUNTIME_LIBRARY variable instead of CMAKE_C_FLAGS on CMake
3.15 and later.

Solution proposed by @moritz-h.

Fixes #1783.
Closes #1796.

(cherry picked from commit f4a7329604)
This commit is contained in:
Camilla Löwy
2020-10-12 23:47:35 +02:00
parent 713711f5e9
commit 658744e222
3 changed files with 11 additions and 2 deletions
+2 -1
View File
@@ -118,7 +118,8 @@ information on what to include when reporting a bug.
## Changelog
There is nothing here yet.
- [Win32] Bugfix: `USE_MSVC_RUNTIME_LIBRARY_DLL` had no effect on CMake 3.15 or
later (#1783,#1796)
## Contact