Skip to content

Commit 6de44a1

Browse files
committed
vcpkg doc updated
1 parent d5cf10a commit 6de44a1

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

docs/vcpkg.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ For PowerShell:
135135
### On Unix-like Systems (Linux, macOS)
136136
137137
138-
```sh
139-
export VCPKG_MAX_CONCURRENCY=$(nproc)
140-
```
138+
```sh
139+
export VCPKG_MAX_CONCURRENCY=$(nproc)
140+
```
141141
142142
### Persisting the Configuration
143143
@@ -242,7 +242,7 @@ Imagine you want to build a library for a 64-bit Windows system using static lin
242242
243243
# Adding vcpkg toolchain to Your CMakeLists.txt
244244
245-
Add the following to your CMakeLists
245+
Add the following to your CMakeLists.txt
246246
```
247247
cmake_minimum_required(VERSION 3.16.3)
248248

@@ -255,6 +255,9 @@ project(your-project-name)
255255

256256
find_package(ZLIB REQUIRED)
257257
message("ZLIB_FOUND: "${ZLIB_FOUND})
258+
message("ZLIB_VERSION_MAJOR: "${ZLIB_VERSION_MAJOR})
259+
message("ZLIB_VERSION_MINOR: "${ZLIB_VERSION_MINOR})
260+
message("ZLIB_VERSION_PATCH: "${ZLIB_VERSION_PATCH})
258261
message("ZLIB_VERSION: "${ZLIB_VERSION})
259262

260263
```
@@ -376,7 +379,7 @@ git rev-list --all
376379
377380
378381
379-
Get all commits where `zlib` has been committed inm
382+
Get all commits where `zlib` has been committed in
380383
```
381384
git log -p --pretty=format:"%H" -- versions/baseline.json | grep -B 10 -A 10 '"zlib"'
382385
```
@@ -716,3 +719,5 @@ More: [1](https://learn.microsoft.com/en-us/vcpkg/commands/help), [2](https://gi
716719
717720
718721
722+
cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake
723+

0 commit comments

Comments
 (0)