diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2024-09-06 12:10:25 +0100 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2024-09-06 12:19:27 +0100 |
commit | ee22bf55e39e4a40c31465e8ef2663eb7fefc783 (patch) | |
tree | 4dc25642cd240efe802c4f54fd769d6581346d8d /doc | |
parent | c07fdd654616e384ad4e686d75b3a979c1921d27 (diff) |
doc: Update and amend MSVC build guide
Diffstat (limited to 'doc')
-rw-r--r-- | doc/build-windows-msvc.md | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/doc/build-windows-msvc.md b/doc/build-windows-msvc.md index 1daca1f93e..c894c26d83 100644 --- a/doc/build-windows-msvc.md +++ b/doc/build-windows-msvc.md @@ -42,27 +42,31 @@ Available presets can be listed as follows: cmake --list-presets ``` +By default, all presets: +- Set `BUILD_GUI` to `ON`. +- Set `WITH_QRENCODE` to `OFF`, due to known build issues when using vcpkg's `libqrencode` package. + ## Building CMake will put the resulting object files, libraries, and executables into a dedicated build directory. In the following instructions, the "Debug" configuration can be specified instead of the "Release" one. -### 4. Building with Dynamic Linking with GUI +### 4. Building with Static Linking with GUI ``` -cmake -B build --preset vs2022 -DBUILD_GUI=ON # It might take a while if the vcpkg binary cache is unpopulated or invalidated. +cmake -B build --preset vs2022-static # It might take a while if the vcpkg binary cache is unpopulated or invalidated. cmake --build build --config Release # Use "-j N" for N parallel jobs. ctest --test-dir build --build-config Release # Use "-j N" for N parallel tests. Some tests are disabled if Python 3 is not available. +cmake --install build --config Release # Optional. ``` -### 5. Building with Static Linking without GUI +### 5. Building with Dynamic Linking without GUI ``` -cmake -B build --preset vs2022-static # It might take a while if the vcpkg binary cache is unpopulated or invalidated. +cmake -B build --preset vs2022 -DBUILD_GUI=OFF # It might take a while if the vcpkg binary cache is unpopulated or invalidated. cmake --build build --config Release # Use "-j N" for N parallel jobs. ctest --test-dir build --build-config Release # Use "-j N" for N parallel tests. Some tests are disabled if Python 3 is not available. -cmake --install build --config Release # Optional. ``` ## Performance Notes |