@@ -135,9 +135,9 @@ For PowerShell:
135
135
# ## On Unix-like Systems (Linux, macOS)
136
136
137
137
138
- ` ` ` sh
139
- export VCPKG_MAX_CONCURRENCY=$( nproc)
140
- ` ` `
138
+ ` ` ` sh
139
+ export VCPKG_MAX_CONCURRENCY=$( nproc)
140
+ ` ` `
141
141
142
142
# ## Persisting the Configuration
143
143
@@ -242,7 +242,7 @@ Imagine you want to build a library for a 64-bit Windows system using static lin
242
242
243
243
# Adding vcpkg toolchain to Your CMakeLists.txt
244
244
245
- Add the following to your CMakeLists
245
+ Add the following to your CMakeLists.txt
246
246
` ` `
247
247
cmake_minimum_required(VERSION 3.16.3)
248
248
@@ -255,6 +255,9 @@ project(your-project-name)
255
255
256
256
find_package(ZLIB REQUIRED)
257
257
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} )
258
261
message(" ZLIB_VERSION: " ${ZLIB_VERSION} )
259
262
260
263
` ` `
@@ -376,7 +379,7 @@ git rev-list --all
376
379
377
380
378
381
379
- Get all commits where ` zlib` has been committed inm
382
+ Get all commits where ` zlib` has been committed in
380
383
` ` `
381
384
git log -p --pretty= format:" %H" -- versions/baseline.json | grep -B 10 -A 10 ' "zlib"'
382
385
` ` `
@@ -716,3 +719,5 @@ More: [1](https://learn.microsoft.com/en-us/vcpkg/commands/help), [2](https://gi
716
719
717
720
718
721
722
+ cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake
723
+
0 commit comments