diff options
Diffstat (limited to 'rust')
| -rw-r--r-- | rust/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/CMakeLists.txt b/rust/CMakeLists.txt index 6870b8fc..67c1fd5b 100644 --- a/rust/CMakeLists.txt +++ b/rust/CMakeLists.txt @@ -13,13 +13,13 @@ file(GLOB RUST_API_SOURCES CONFIGURE_DEPENDS src/*/*.rs) if(CMAKE_BUILD_TYPE MATCHES Debug) - set(CARGO_CHECK_OPTS --workspace) + set(CARGO_CHECK_OPTS --workspace --target-dir=${PROJECT_BINARY_DIR}/target) # Documentation for both binaryninja and binaryninjacore-sys crates - set(CARGO_DOC_OPTS --no-deps -p binaryninja -p binaryninjacore-sys) + set(CARGO_DOC_OPTS --no-deps -p binaryninja -p binaryninjacore-sys --target-dir=${PROJECT_BINARY_DIR}/target) else() - set(CARGO_CHECK_OPTS --workspace --release) + set(CARGO_CHECK_OPTS --workspace --release --target-dir=${PROJECT_BINARY_DIR}/target) # Documentation for both binaryninja and binaryninjacore-sys crates - set(CARGO_DOC_OPTS --no-deps --release -p binaryninja -p binaryninjacore-sys) + set(CARGO_DOC_OPTS --no-deps --release -p binaryninja -p binaryninjacore-sys --target-dir=${PROJECT_BINARY_DIR}/target) endif() if (BN_BUILD_NUMBER) |
