Skip to content

Commit ee22bf5

Browse files
committed
doc: Update and amend MSVC build guide
1 parent c07fdd6 commit ee22bf5

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

doc/build-windows-msvc.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,27 +42,31 @@ Available presets can be listed as follows:
4242
cmake --list-presets
4343
```
4444

45+
By default, all presets:
46+
- Set `BUILD_GUI` to `ON`.
47+
- Set `WITH_QRENCODE` to `OFF`, due to known build issues when using vcpkg's `libqrencode` package.
48+
4549
## Building
4650

4751
CMake will put the resulting object files, libraries, and executables into a dedicated build directory.
4852

4953
In the following instructions, the "Debug" configuration can be specified instead of the "Release" one.
5054

51-
### 4. Building with Dynamic Linking with GUI
55+
### 4. Building with Static Linking with GUI
5256

5357
```
54-
cmake -B build --preset vs2022 -DBUILD_GUI=ON # It might take a while if the vcpkg binary cache is unpopulated or invalidated.
58+
cmake -B build --preset vs2022-static # It might take a while if the vcpkg binary cache is unpopulated or invalidated.
5559
cmake --build build --config Release # Use "-j N" for N parallel jobs.
5660
ctest --test-dir build --build-config Release # Use "-j N" for N parallel tests. Some tests are disabled if Python 3 is not available.
61+
cmake --install build --config Release # Optional.
5762
```
5863

59-
### 5. Building with Static Linking without GUI
64+
### 5. Building with Dynamic Linking without GUI
6065

6166
```
62-
cmake -B build --preset vs2022-static # It might take a while if the vcpkg binary cache is unpopulated or invalidated.
67+
cmake -B build --preset vs2022 -DBUILD_GUI=OFF # It might take a while if the vcpkg binary cache is unpopulated or invalidated.
6368
cmake --build build --config Release # Use "-j N" for N parallel jobs.
6469
ctest --test-dir build --build-config Release # Use "-j N" for N parallel tests. Some tests are disabled if Python 3 is not available.
65-
cmake --install build --config Release # Optional.
6670
```
6771

6872
## Performance Notes

0 commit comments

Comments
 (0)