Skip to content

Commit

Permalink
cmake: add environment variables for esp-idf-sys support
Browse files Browse the repository at this point in the history
  • Loading branch information
igrr committed Oct 5, 2021
1 parent 7833f60 commit 58c6387
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/rustlib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ ExternalProject_Add(
BUILD_COMMAND ${CMAKE_COMMAND} -E env
CARGO_BUILD_TARGET=${CARGO_TARGET}
CARGO_BUILD_TARGET_DIR=${RUST_TARGET_DIR}
CARGO_CMAKE_BUILD_INCLUDES=$<TARGET_PROPERTY:${COMPONENT_LIB},INCLUDE_DIRECTORIES>
CARGO_CMAKE_BUILD_SDKCONFIG=${sdkconfig}
CARGO_CMAKE_BUILD_COMPILER=${CMAKE_C_COMPILER}
cargo build ${CARGO_BUILD_ARG} ${CARGO_FEATURES_ARG}
INSTALL_COMMAND ""
BUILD_ALWAYS TRUE
Expand Down

0 comments on commit 58c6387

Please sign in to comment.