1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-22 09:29:52 +03:00

build: windows: link MSVC runtime statically

This commit is contained in:
Ilya Shipitsin 2023-03-11 21:52:11 +01:00
parent 1f3a730d0a
commit 96ab969152
2 changed files with 11 additions and 4 deletions

View File

@ -13,6 +13,13 @@ if (BUILD_NUMBER LESS 5180)
"For detailed info: https://github.com/SoftEtherVPN/SoftEtherVPN/issues/1392#issuecomment-867348281")
endif()
#
# Link MSVC runtime statically
# this should be revisited after installer migration to MSI
#
cmake_policy(SET CMP0091 NEW)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
project("SoftEther VPN"
VERSION "5.02.${BUILD_NUMBER}"
LANGUAGES C

View File

@ -30,7 +30,7 @@
},
{
"name": "VCPKG_TARGET_TRIPLET",
"value": "x64-windows-static-md",
"value": "x64-windows-static",
"type": "STRING"
}
]
@ -64,7 +64,7 @@
},
{
"name": "VCPKG_TARGET_TRIPLET",
"value": "x86-windows-static-md",
"value": "x86-windows-static",
"type": "STRING"
}
]
@ -98,7 +98,7 @@
},
{
"name": "VCPKG_TARGET_TRIPLET",
"value": "x64-windows-static-md",
"value": "x64-windows-static",
"type": "STRING"
}
]
@ -132,7 +132,7 @@
},
{
"name": "VCPKG_TARGET_TRIPLET",
"value": "x86-windows-static-md",
"value": "x86-windows-static",
"type": "STRING"
}
]