Updated Building KeePassXC (markdown)

Janek Bevendorff
2024-02-19 23:06:35 +01:00
parent f136bc3dde
commit d2f5566a97

@@ -106,7 +106,6 @@ Download and unpack the source code as described in the [Linux](#linux) section.
mkdir build
cd build
cmake \
-G "MSYS Makefiles \
-DWITH_XC_ALL=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake ..
@@ -114,6 +113,8 @@ make -j8 package
```
If you build with MSVC, make sure that `-DCMAKE_TOOLCHAIN_FILE` points to the correct path of your vcpkg installation. If instead, you build with Msys2, omit it altogether.
If you build with MSys2, add `-G "MSYS Makefiles`.
## 3. Running tests
If you compiled KeePassXC with the CMake flags `-DWITH_TESTS=ON` and `-DWITH_GUI_TESTS=ON`, you can run our unit test suite with: