Commit 9690385
committed
Switch Windows MSVC runtime from dynamic (/MD) to static (/MT)
Set CMAKE_MSVC_RUNTIME_LIBRARY to MultiThreaded (static) before any
FetchContent_MakeAvailable call so all subprojects (llama.cpp, GTest)
inherit the same CRT. Static linking embeds msvcp140/vcruntime140 into
jllama.dll, removing the runtime DLL requirement on end-user machines.
Also flip gtest_force_shared_crt to OFF so GoogleTest uses the same
static CRT; mixing /MT and /MD in a single link is a linker error.
Bump cmake_minimum_required to 3.15 for CMAKE_MSVC_RUNTIME_LIBRARY support.
https://claude.ai/code/session_017esAFB4PjHUjGBqWhbWrXY1 parent a412480 commit 9690385
1 file changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
5 | 15 | | |
6 | 16 | | |
7 | 17 | | |
| |||
273 | 283 | | |
274 | 284 | | |
275 | 285 | | |
276 | | - | |
277 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
278 | 289 | | |
279 | 290 | | |
280 | 291 | | |
| |||
0 commit comments