Skip to content

Commit

Permalink
Mention -DCMAKE_GENERATOR_PLATFORM=WIN32.
Browse files Browse the repository at this point in the history
  • Loading branch information
hoehermann committed Aug 6, 2024
1 parent d49dc8a commit 04fb482
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,18 @@ Same as Linux build instructions, but may need to modify the configuration:

1. Generate project:

cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE="…/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x86-windows-static -DRust_CARGO_TARGET="i686-pc-windows-msvc" ..
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_GENERATOR_PLATFORM=WIN32 -DCMAKE_TOOLCHAIN_FILE="…/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x86-windows-static -DRust_CARGO_TARGET="i686-pc-windows-msvc" ..

If necessary, the rust tool-chain version can be specified via `-DRust_TOOLCHAIN="1.75-i686-pc-windows-msvc"`.

2. Build, Install and Run:

cmake --build .
cmake --install .
cmake --install . --config Debug
cmake --build . --target run

#### Notes

purple-presage must be built with MSVC. MinGW's GCC encountered a number of issues such as [incompatibility with rustc versions newer than 1.69](https://github.com/rust-lang/rust/issues/112368) and not shipping libbcrypt by default.

Needs a whooping 6 GB of disk space during build! :o
Needs a whooping 6 GB of disk space during build! 😳
2 changes: 1 addition & 1 deletion submodules/purple-cmake

0 comments on commit 04fb482

Please sign in to comment.