build, msvc: Enable libqrencode vcpkg package

This commit is contained in:
Hennadii Stepanov 2024-10-28 14:09:12 +00:00
parent 30089b0cb6
commit 9e5089dbb0
No known key found for this signature in database
GPG key ID: 410108112E7EA81F
3 changed files with 5 additions and 8 deletions

View file

@ -15,8 +15,7 @@
"toolchainFile": "$env{VCPKG_ROOT}\\scripts\\buildsystems\\vcpkg.cmake", "toolchainFile": "$env{VCPKG_ROOT}\\scripts\\buildsystems\\vcpkg.cmake",
"cacheVariables": { "cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-windows", "VCPKG_TARGET_TRIPLET": "x64-windows",
"BUILD_GUI": "ON", "BUILD_GUI": "ON"
"WITH_QRENCODE": "OFF"
} }
}, },
{ {
@ -32,8 +31,7 @@
"toolchainFile": "$env{VCPKG_ROOT}\\scripts\\buildsystems\\vcpkg.cmake", "toolchainFile": "$env{VCPKG_ROOT}\\scripts\\buildsystems\\vcpkg.cmake",
"cacheVariables": { "cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-windows-static", "VCPKG_TARGET_TRIPLET": "x64-windows-static",
"BUILD_GUI": "ON", "BUILD_GUI": "ON"
"WITH_QRENCODE": "OFF"
} }
}, },
{ {

View file

@ -42,9 +42,7 @@ Available presets can be listed as follows:
cmake --list-presets cmake --list-presets
``` ```
By default, all presets: By default, all presets set `BUILD_GUI` to `ON`.
- Set `BUILD_GUI` to `ON`.
- Set `WITH_QRENCODE` to `OFF`, due to known build issues when using vcpkg's `libqrencode` package.
## Building ## Building

View file

@ -25,7 +25,8 @@
"description": "Build GUI, Qt 5", "description": "Build GUI, Qt 5",
"dependencies": [ "dependencies": [
"qt5-base", "qt5-base",
"qt5-tools" "qt5-tools",
"libqrencode"
] ]
}, },
"sqlite": { "sqlite": {