mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Updated Building KeePassXC (markdown)
@@ -105,16 +105,12 @@ Download and unpack the source code as described in the [Linux](#linux) section.
|
||||
```
|
||||
mkdir build
|
||||
cd build
|
||||
cmake `
|
||||
-DWITH_XC_ALL=ON `
|
||||
-DCMAKE_BUILD_TYPE=Release `
|
||||
-DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake `
|
||||
-DVCPKG_TARGET_TRIPLET=x64-windows-release ..
|
||||
cmake -DWITH_XC_ALL=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake ..
|
||||
make -j8 package
|
||||
```
|
||||
Make sure that `-DCMAKE_TOOLCHAIN_FILE` points to the correct path of your vcpkg installation.
|
||||
|
||||
If you build with Msys2, omit `-DCMAKE_TOOLCHAIN_FILE` and `-DVCPKG_TARGET_TRIPLET` altogether and add `-G "MSYS Makefiles"` instead. Replace backticks with `\` if running in a Unix shell.
|
||||
If you build with Msys2, omit `-DCMAKE_TOOLCHAIN_FILE` and `-DVCPKG_TARGET_TRIPLET` altogether and add `-G "MSYS Makefiles"` instead.
|
||||
|
||||
|
||||
## 3. Running tests
|
||||
|
||||
Reference in New Issue
Block a user