Commit 436a981
CMakeLists.txt: Enable CMAKE_MSVC_RUNTIME_LIBRARY support (#2652)
The documentation for CMAKE_MSVC_RUNTIME_LIBRARY states [1]:
> This variable has effect only when policy CMP0091 is set to NEW prior to
> the first project() or enable_language() command that enables a language
> using a compiler targeting the MSVC ABI.
so the current usage of CMAKE_MSVC_RUNTIME_LIBRARY for vcpkg does not work
at all.
Let's fix that by setting policy 91 to new if present.
[1]: https://cmake.org/cmake/help/latest/variable/CMAKE_MSVC_RUNTIME_LIBRARY.html
Co-authored-by: Tom Tan <[email protected]>1 parent 1d8a7b5 commit 436a981
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
| |||
0 commit comments