You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This folder applies to the custom vcpkg ports. These ports are loaded automatically which can be patched from the `ports` folder of the vcpkg repository or created from scratch.
4
+
5
+
## Customize linkage
6
+
7
+
Prepare the port from the vcpkg repository
8
+
9
+
```bash
10
+
cp /path/to/vcpkg/repository/ports/7zip . -r
11
+
```
12
+
13
+
Edit the port to only accept the dynamic linkage by [vcpkg_check_linkage](https://learn.microsoft.com/en-us/vcpkg/maintainers/functions/vcpkg_check_linkage) to the head of the port file
14
+
15
+
```bash
16
+
sed -i '1s/^/vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)\n/' 7zip/portfile.cmake
17
+
```
18
+
19
+
And re-cmake the project to re-build the port with dynamic linkage.
Copy file name to clipboardExpand all lines: cmake/vcpkg/triplets/README.md
+20-10
Original file line number
Diff line number
Diff line change
@@ -2,21 +2,31 @@
2
2
3
3
This folder applies to the custom vcpkg triplets. These triplets are loaded automatically which can be copied from the `triplets` folder of the vcpkg repository or created from scratch.
4
4
5
-
For example, to create a custom triplet for Linux x64 with dynamic library linkage:
0 commit comments