Commit 993a134
committed
Enable static CRT linking for fully standalone executable
Changes:
- Set CMAKE_MSVC_RUNTIME_LIBRARY to MultiThreaded (/MT flag)
- Embeds C/C++ runtime into executable instead of using DLLs
- Removes dependency on VCRUNTIME140.dll, MSVCP140.dll
- Removes dependency on api-ms-win-crt-*.dll (Universal CRT)
Result:
- Before: Requires VC++ Redistributable installation
- After: Fully standalone executable with only KERNEL32.dll dependency
This applies to all submodules (Neptune, NThread, NThreadOSUtils) as well.1 parent 4c92652 commit 993a134
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
| |||
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
0 commit comments