Skip to content

Commit

Permalink
Set MCU for the CMake build as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Oct 18, 2023
1 parent 6d71a63 commit 01b55d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/components/rust-{{project-name}}/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ ExternalProject_Add(
CARGO_CMAKE_BUILD_ESP_IDF=${idf_path}
CARGO_CMAKE_BUILD_COMPILER=${CMAKE_C_COMPILER}
RUSTFLAGS=${ESP_RUSTFLAGS}
MCU=${CONFIG_IDF_TARGET}
cargo build --target ${RUST_TARGET} --target-dir ${CARGO_TARGET_DIR} ${CARGO_BUILD_ARG} ${CARGO_BUILD_STD_ARG}
INSTALL_COMMAND ""
BUILD_ALWAYS TRUE
Expand Down

0 comments on commit 01b55d3

Please sign in to comment.