Skip to content

Commit

Permalink
cmake/FindRust.cmake: inherit RUSTFLAGS from the environment
Browse files Browse the repository at this point in the history
  • Loading branch information
liushuyu committed Jul 23, 2024
1 parent 8f914a0 commit bef8451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/FindRust.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ elseif(${CMAKE_BUILD_TYPE} STREQUAL "RelWithDebInfo")
else()
set(CARGO_BUILD_TYPE "debug")
endif()
string(STRIP "${RUSTFLAGS}" RUSTFLAGS)
string(STRIP "${RUSTFLAGS} $ENV{RUSTFLAGS}" RUSTFLAGS)

find_package_handle_standard_args(Rust
REQUIRED_VARS cargo_EXECUTABLE
Expand Down

0 comments on commit bef8451

Please sign in to comment.