Skip to content

Commit 25a6c5c

Browse files
committed
Force static linking for windows builds
1 parent 5f80b93 commit 25a6c5c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

CMakePresets.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,19 @@
1414
"name": "x64-windows",
1515
"inherits": "vcpkg",
1616
"generator": "Visual Studio 17 2022",
17-
"architecture": "x64"
17+
"architecture": "x64",
18+
"cacheVariables": {
19+
"VCPKG_TARGET_TRIPLET": "x64-windows-static"
20+
}
1821
},
1922
{
2023
"name": "x86-windows",
2124
"inherits": "vcpkg",
2225
"generator": "Visual Studio 17 2022",
23-
"architecture": "Win32"
26+
"architecture": "Win32",
27+
"cacheVariables": {
28+
"VCPKG_TARGET_TRIPLET": "x86-windows-static"
29+
}
2430
},
2531
{
2632
"name": "unix",

0 commit comments

Comments
 (0)