From 03894fea3c2576ff26f515123e169c8eac29a293 Mon Sep 17 00:00:00 2001 From: Daniel Rainer Date: Mon, 19 Jan 2026 16:53:49 +0100 Subject: [PATCH] cmake: remove unnecessary dir nesting The `cargo` directory in the CMake build directory is only used to store Cargo's build output, as would be done by `target` when building without CMake. But instead of putting the build output directly into the `cargo` directory, a nested `build` directory was used. There is no point in this nesting, so remove it. Closes #12352 --- cmake/Rust.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Rust.cmake b/cmake/Rust.cmake index 96378151e..521da0c03 100644 --- a/cmake/Rust.cmake +++ b/cmake/Rust.cmake @@ -2,7 +2,7 @@ include(FeatureSummary) include(FindRust) find_package(Rust REQUIRED) -set(FISH_RUST_BUILD_DIR "${CMAKE_BINARY_DIR}/cargo/build") +set(FISH_RUST_BUILD_DIR "${CMAKE_BINARY_DIR}/cargo") if(DEFINED ASAN) list(APPEND CARGO_FLAGS "-Z" "build-std")