summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2025-05-13 14:55:02 -0400
committerGlenn Smith <glenn@vector35.com>2025-05-13 14:55:02 -0400
commit7034620653386995816157558520033738480413 (patch)
tree4a2b749a889b980169db2c08e64d6f0e7b2a7bd0 /rust
parent5867653121045965902015334843146378887339 (diff)
[Rust] Have cargo check output in the build dir not source dir
Diffstat (limited to 'rust')
-rw-r--r--rust/CMakeLists.txt8
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)