Skip to content

Commit

Permalink
readme: Document integration with vcpkg on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
huangqinjin committed Jan 10, 2025
1 parent 1b14d14 commit a2079ca
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,13 @@ No. Using Ninja or GNU Make directly should work.

## How to integrate with vcpkg?

You need define your own triplets, e.g. `my-triplets/x64-windows.cmake`:
On Windows, you just define the two environment variables before invoking `vcpkg`:
```cmd
set VS170COMNTOOLS=C:\msvc\Common7\Tools\
set VCPKG_VISUAL_STUDIO_PATH=C:\msvc
```

On Unix, you need define your own triplets, e.g. `my-triplets/x64-windows.cmake`:
```cmake
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
Expand Down

0 comments on commit a2079ca

Please sign in to comment.