From 010f16a7c08d3b090817faabae0373bb20e0e2fb Mon Sep 17 00:00:00 2001 From: garryrot <121590509+garryrot@users.noreply.github.com> Date: Wed, 6 Mar 2024 00:26:13 +0100 Subject: [PATCH] Fix installation instruction Preset seem to be named without the build- prefix, if I remove it the build works. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 22e5057..9cd01c4 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,8 @@ If you install the [just](https://just.systems) command runner, you can type `ju To build by hand: ```sh -cmake --preset build-vs2022-windows # or just cmake -cmake --build --preset build-vs2022-windows --config Release # or just build +cmake --preset vs2022-windows # or just cmake +cmake --build --preset vs2022-windows --config Release # or just build ``` CMake should trigger appropriate cargo builds, but it doesn't have the full list of rust source files so I usually run cargo as part of the `build` recipe. `cargo check` is also runnable separately. The `build.rs` file instructs cargo to build the `lib.rs.h` for the plugin specifically as well as `cxx.h` for the bridging types that Cxx uses. These are rebuilt when `lib.rs` changes, which should be the only trigger you need.