Fix bug in r2r_cargo

This commit is contained in:
Martin Dahl 2023-12-05 09:46:44 +01:00
parent b685b30af1
commit 27cc6450cd
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ function(r2r_cargo)
if(CARGO_CLEAN)
add_custom_target(cargo_target ALL
COMMAND ${CMAKE_COMMAND} "-E" "env" "cargo" "clean" "--profile" "colcon"
COMMAND ${CMAKE_COMMAND} "-E" "env" "RUSTFLAGS=$ENV{RUSTFLAGS}" "CMAKE_IDL_PACKAGES=$ENV{CMAKE_IDL_PACKAGES}" "CMAKE_INCLUDE_DIRS=$ENV{CMAKE_INCLUDE_DIRS_PACKAGES}" "cargo" "build" "--profile" "colcon"
COMMAND ${CMAKE_COMMAND} "-E" "env" "RUSTFLAGS=$ENV{RUSTFLAGS}" "CMAKE_IDL_PACKAGES=$ENV{CMAKE_IDL_PACKAGES}" "CMAKE_INCLUDE_DIRS=$ENV{CMAKE_INCLUDE_DIRS}" "cargo" "build" "--profile" "colcon"
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)
else()